Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009896/0.0009894, allocations: 93.97 kB / 16.31 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001247, allocations: 177.8 kB / 17.2 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.557/1.557, allocations: 223.2 MB / 241.2 MB, free: 304 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002982/0.0002989, allocations: 8 kB / 300.9 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1215, allocations: 50.4 MB / 351.3 MB, free: 3.906 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005322/0.1268, allocations: 5.26 MB / 356.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003175/0.1301, allocations: 1.482 MB / 358.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005671/0.1307, allocations: 16 kB / 358.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003722/0.131, allocations: 131 kB / 358.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005176/0.1316, allocations: 241.9 kB / 358.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007655/0.1323, allocations: 267.6 kB / 358.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00131/0.1337, allocations: 1.25 MB / 360 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000627/0.1343, allocations: 312.4 kB / 360.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007542/0.1351, allocations: 398.6 kB / 360.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006817/0.1358, allocations: 485.9 kB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001225/0.1359, allocations: 56 kB / 361.2 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002843/0.1362, allocations: 95.97 kB / 361.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002147/0.1364, allocations: 183.2 kB / 361.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002848/0.1367, allocations: 221.2 kB / 361.7 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00133/0.138, allocations: 1.149 MB / 362.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.148e-05/0.1381, allocations: 0 / 362.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.817e-06/0.1381, allocations: 4 kB / 362.8 MB, free: 8.336 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.23e-05/0.1381, allocations: 0 / 362.8 MB, free: 8.336 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002745/0.1409, allocations: 1.223 MB / 364 MB, free: 7.062 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.1409, allocations: 12.03 kB / 364.1 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001633/0.1411, allocations: 143.4 kB / 364.2 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.1413, allocations: 114.6 kB / 364.3 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006575/0.1419, allocations: 0.5219 MB / 364.8 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.882e-05/0.142, allocations: 66 kB / 364.9 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.1421, allocations: 87.91 kB / 365 MB, free: 6.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.1438, allocations: 0.8624 MB / 365.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.1438, allocations: 0 / 365.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.386e-05/0.1439, allocations: 39.95 kB / 365.9 MB, free: 5.164 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.341e-05/0.1439, allocations: 24 kB / 365.9 MB, free: 5.141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001739/0.1457, allocations: 0.8746 MB / 366.8 MB, free: 4.266 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005285/0.151, allocations: 3.266 MB / 370 MB, free: 0.875 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.1521, allocations: 0.6806 MB / 370.7 MB, free: 184 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.225/0.3772, allocations: 450.1 kB / 371.2 MB, free: 23.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001009/0.3773, allocations: 15.53 kB / 371.2 MB, free: 23.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/0.3774, allocations: 41.45 kB / 371.2 MB, free: 23.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 2.805e-06/0.3774, allocations: 3.172 kB / 371.2 MB, free: 23.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.005365/0.3827, allocations: 2.317 MB / 373.5 MB, free: 23.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.357e-05/0.3828, allocations: 63.47 kB / 373.6 MB, free: 23.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008786/0.3837, allocations: 0.6043 MB / 374.2 MB, free: 23.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.18e-05/0.3838, allocations: 38.42 kB / 374.2 MB, free: 23.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002365/0.384, allocations: 440.9 kB / 374.7 MB, free: 22.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/0.3842, allocations: 261.9 kB / 374.9 MB, free: 22.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.22e-05/0.3842, allocations: 15.56 kB / 374.9 MB, free: 22.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.3844, allocations: 395.3 kB / 375.3 MB, free: 22.37 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006088/0.385, allocations: 330.8 kB / 375.7 MB, free: 22.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000713/0.3857, allocations: 482.8 kB / 376.1 MB, free: 21.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006769/0.3864, allocations: 392.1 kB / 376.5 MB, free: 21.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.3864, allocations: 1.281 kB / 376.5 MB, free: 21.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002152/0.3886, allocations: 1.135 MB / 377.6 MB, free: 21.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.881e-05/0.3886, allocations: 5.812 kB / 377.7 MB, free: 21.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.3886, allocations: 3.953 kB / 377.7 MB, free: 21.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006315/0.3893, allocations: 193.9 kB / 377.8 MB, free: 21.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009212/0.3902, allocations: 198.5 kB / 378 MB, free: 21.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003678/0.3939, allocations: 2.639 MB / 380.7 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007653/0.3947, allocations: 42.92 kB / 380.7 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.388e-05/0.3947, allocations: 37.44 kB / 380.8 MB, free: 19.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004418/0.3952, allocations: 231.2 kB / 381 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.3953, allocations: 78.69 kB / 381.1 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002033/0.3956, allocations: 95.41 kB / 381.2 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.896e-06/0.3956, allocations: 7.875 kB / 381.2 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.944e-05/0.3956, allocations: 7.078 kB / 381.2 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.3956, allocations: 4.078 kB / 381.2 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001338/0.397, allocations: 0.8853 MB / 382.1 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.286e-06/0.397, allocations: 6.562 kB / 382.1 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007892/0.3978, allocations: 149.5 kB / 382.2 MB, free: 18.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006234/0.3984, allocations: 182.2 kB / 382.4 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.384e-05/0.3985, allocations: 18.55 kB / 382.4 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003351/0.4018, allocations: 2.65 MB / 385.1 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4019, allocations: 0.9375 kB / 385.1 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003424/0.4053, allocations: 1.461 MB / 386.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004679/0.4058, allocations: 155.2 kB / 386.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/0.4059, allocations: 19.66 kB / 386.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006436/0.4066, allocations: 67.08 kB / 386.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002325/0.4068, allocations: 47.3 kB / 386.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.064e-05/0.4069, allocations: 32.3 kB / 386.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008121/0.4077, allocations: 422.3 kB / 387.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4077, allocations: 0 / 387.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001384/0.4091, allocations: 243.3 kB / 387.5 MB, free: 15.21 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003596/0.4127, allocations: 2.028 MB / 389.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00268/0.4154, allocations: 1.062 MB / 390.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.4155, allocations: 0 / 390.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001429/0.4169, allocations: 0.6448 MB / 391.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.418, allocations: 145.1 kB / 391.4 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/0.4281, allocations: 5.659 MB / 397 MB, free: 9.973 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004473/0.4286, allocations: 0.9846 MB / 398 MB, free: 9.258 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004886/0.4291, allocations: 95.77 kB / 398.1 MB, free: 9.215 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004113/0.4295, allocations: 322.3 kB / 398.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of SimCode: time 1.984e-06/0.4295, allocations: 0 / 398.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03864/0.4682, allocations: 17.21 MB / 415.6 MB, free: 8.117 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002648/0.4685, allocations: 215.1 kB / 415.8 MB, free: 7.875 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.388/2.857, allocations: 0 / 415.8 MB, free: 7.875 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)