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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 115.7 kB / 18.49 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 194.5 kB / 21.43 MB, free: 1.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 225.6 MB / 249.8 MB, free: 3.633 MB / 190.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 47.92 kB / 366.4 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09984/0.1013, allocations: 52.14 MB / 418.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.00707/0.1084, allocations: 6.092 MB / 424.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002755/0.1112, allocations: 1.521 MB / 426.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004019/0.1116, allocations: 23.88 kB / 426.1 MB, free: 4.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000365/0.1119, allocations: 178.3 kB / 426.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000528/0.1125, allocations: 289.2 kB / 426.6 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007751/0.1132, allocations: 411.4 kB / 427 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001357/0.1146, allocations: 1.391 MB / 428.4 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004433/0.115, allocations: 301.3 kB / 428.7 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005697/0.1156, allocations: 0.5062 MB / 429.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000622/0.1162, allocations: 0.5718 MB / 429.8 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001631/0.1164, allocations: 136 kB / 429.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002576/0.1166, allocations: 168 kB / 430.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002191/0.1169, allocations: 271.1 kB / 430.3 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005196/0.1174, allocations: 0.5911 MB / 430.9 MB, free: 128 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001463/0.1188, allocations: 1.537 MB / 432.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1188, allocations: 0 / 432.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1189, allocations: 0 / 432.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.837e-05/0.1189, allocations: 0 / 432.4 MB, free: 14.58 MB / 366.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.002655/0.1215, allocations: 1.413 MB / 433.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.1216, allocations: 12.03 kB / 433.9 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.867e-05/0.1216, allocations: 26.12 kB / 433.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000163/0.1218, allocations: 135.6 kB / 434 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001919/0.122, allocations: 120.2 kB / 434.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007736/0.1227, allocations: 0.5582 MB / 434.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.345e-05/0.1228, allocations: 66.38 kB / 434.8 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.1229, allocations: 88.33 kB / 434.9 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00154/0.1245, allocations: 0.8545 MB / 435.7 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.1245, allocations: 0 / 435.7 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.022e-05/0.1246, allocations: 36 kB / 435.7 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.198e-05/0.1246, allocations: 28 kB / 435.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001663/0.1263, allocations: 0.8511 MB / 436.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005413/0.1317, allocations: 3.227 MB / 439.9 MB, free: 6.941 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.1328, allocations: 0.6255 MB / 440.5 MB, free: 6.309 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007125/0.1335, allocations: 399.1 kB / 440.9 MB, free: 5.914 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.263e-05/0.1336, allocations: 12.55 kB / 440.9 MB, free: 5.902 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.1336, allocations: 47.06 kB / 440.9 MB, free: 5.844 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.234e-06/0.1336, allocations: 0 / 440.9 MB, free: 5.844 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.004652/0.1383, allocations: 2.261 MB / 443.2 MB, free: 3.531 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.1383, allocations: 64.06 kB / 443.2 MB, free: 3.457 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007397/0.1391, allocations: 0.6134 MB / 443.9 MB, free: 2.836 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.75e-05/0.1391, allocations: 41.64 kB / 443.9 MB, free: 2.789 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000326/0.1394, allocations: 452.3 kB / 444.3 MB, free: 2.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002125/0.1397, allocations: 269.7 kB / 444.6 MB, free: 2.074 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002598/0.1399, allocations: 150.6 kB / 444.8 MB, free: 1.918 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001901/0.1401, allocations: 382.8 kB / 445.1 MB, free: 1.535 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006653/0.1408, allocations: 329.9 kB / 445.5 MB, free: 1.215 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007805/0.1415, allocations: 468.6 kB / 445.9 MB, free: 0.707 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1855/0.3271, allocations: 0.7979 MB / 446.7 MB, free: 29.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.748e-06/0.3271, allocations: 1.625 kB / 446.7 MB, free: 29.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002172/0.3293, allocations: 1.111 MB / 447.8 MB, free: 29.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.3293, allocations: 8.062 kB / 447.8 MB, free: 29.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.3293, allocations: 6.547 kB / 447.8 MB, free: 29.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005503/0.3298, allocations: 189 kB / 448 MB, free: 29.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000818/0.3307, allocations: 196.8 kB / 448.2 MB, free: 29.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003082/0.3337, allocations: 2.882 MB / 451.1 MB, free: 27.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006715/0.3344, allocations: 42.91 kB / 451.1 MB, free: 27.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.893e-05/0.3345, allocations: 32.77 kB / 451.2 MB, free: 27.63 MB / 366.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003213/0.3348, allocations: 235.4 kB / 451.4 MB, free: 27.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.3349, allocations: 84.94 kB / 451.5 MB, free: 27.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001744/0.3351, allocations: 93.33 kB / 451.6 MB, free: 27.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.3351, allocations: 8.312 kB / 451.6 MB, free: 27.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.344e-05/0.3351, allocations: 3.328 kB / 451.6 MB, free: 27.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.3351, allocations: 9.75 kB / 451.6 MB, free: 27.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009038/0.336, allocations: 0.8793 MB / 452.5 MB, free: 27.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.336, allocations: 1.438 kB / 452.5 MB, free: 27.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007239/0.3368, allocations: 148.8 kB / 452.6 MB, free: 27.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005284/0.3373, allocations: 187 kB / 452.8 MB, free: 27.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.742e-05/0.3373, allocations: 19.55 kB / 452.8 MB, free: 27.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003244/0.3406, allocations: 2.908 MB / 455.7 MB, free: 25.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3406, allocations: 3.75 kB / 455.7 MB, free: 25.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002678/0.3433, allocations: 1.42 MB / 457.2 MB, free: 24.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001406/0.3434, allocations: 154.5 kB / 457.3 MB, free: 24.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.384e-05/0.3435, allocations: 13.89 kB / 457.3 MB, free: 24.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005983/0.3441, allocations: 55.89 kB / 457.4 MB, free: 24.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001651/0.3443, allocations: 58.36 kB / 457.4 MB, free: 24.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.676e-05/0.3443, allocations: 23.81 kB / 457.4 MB, free: 24.28 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005165/0.3448, allocations: 426.5 kB / 457.9 MB, free: 24.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3448, allocations: 3.969 kB / 457.9 MB, free: 24.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008452/0.3457, allocations: 243.3 kB / 458.1 MB, free: 24.05 MB / 366.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002727/0.3484, allocations: 1.999 MB / 460.1 MB, free: 22.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002366/0.3508, allocations: 1.001 MB / 461.1 MB, free: 22.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.3508, allocations: 0.8125 kB / 461.1 MB, free: 22.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001413/0.3522, allocations: 0.6126 MB / 461.7 MB, free: 22.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008329/0.353, allocations: 147.2 kB / 461.9 MB, free: 22.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/0.364, allocations: 7.447 MB / 469.3 MB, free: 17.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005044/0.3645, allocations: 0.9797 MB / 470.3 MB, free: 17.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004574/0.365, allocations: 97.97 kB / 470.4 MB, free: 17.22 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003934/0.3654, allocations: 322.9 kB / 470.7 MB, free: 16.97 MB / 366.1 MB Notification: Performance of SimCode: time 1.322e-06/0.3654, allocations: 0 / 470.7 MB, free: 16.97 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04216/0.4075, allocations: 19.18 MB / 489.9 MB, free: 5.477 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.36, allocations: 17.02 kB / 489.9 MB, free: 5.465 MB / 366.1 MB " [Timeout remaining time 648] (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/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 --stepSize=0.00019984 --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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.769565410038922] Failed to read output from testmodel.py, exit status != 0: ['time', 'C1.v', 'C2.v', 'C3.v', 'C4.v', 'C5.v', 'Transistor1.Tr.C.v', 'Transistor1.ct.v', 'Transistor2.Tr.C.v', 'Transistor2.ct.v'] 11.509026721992996 11.531238902 11.408315456 Calling exit ...