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.0008616/0.0008616, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0009433/0.0009433, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.9201/0.9201, allocations: 173.4 MB / 200.4 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 318.5 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.963e-05/2.16e-05, allocations: 2.281 kB / 318.5 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005075/0.005096, allocations: 5.319 MB / 323.8 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002537/0.007634, allocations: 1.49 MB / 325.3 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005371/0.008171, allocations: 23.88 kB / 325.3 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003379/0.008509, allocations: 174.3 kB / 325.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005483/0.009057, allocations: 313 kB / 325.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008122/0.009869, allocations: 419.2 kB / 326.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009594/0.01083, allocations: 1.441 MB / 327.6 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003665/0.0112, allocations: 269.7 kB / 327.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007114/0.01191, allocations: 0.7603 MB / 328.6 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004346/0.01234, allocations: 442.7 kB / 329.1 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001262/0.01247, allocations: 132 kB / 329.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002042/0.01267, allocations: 164 kB / 329.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003486/0.01302, allocations: 283 kB / 329.6 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002698/0.01329, allocations: 423.1 kB / 330.1 MB, free: 10.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009934/0.01428, allocations: 1.616 MB / 331.7 MB, free: 9.047 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.01429, allocations: 4 kB / 331.7 MB, free: 9.043 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.01429, allocations: 0 / 331.7 MB, free: 9.043 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.0143, allocations: 0 / 331.7 MB, free: 9.043 MB / 298.7 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.001674/0.01598, allocations: 1.318 MB / 333 MB, free: 7.688 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.01602, allocations: 12.92 kB / 333 MB, free: 7.676 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001166/0.01614, allocations: 139.6 kB / 333.1 MB, free: 7.531 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001242/0.01626, allocations: 120.2 kB / 333.3 MB, free: 7.414 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005347/0.0168, allocations: 0.4932 MB / 333.8 MB, free: 6.895 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.594e-05/0.01683, allocations: 66.36 kB / 333.8 MB, free: 6.832 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.821e-05/0.01693, allocations: 96.31 kB / 333.9 MB, free: 6.738 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.01795, allocations: 1.102 MB / 335 MB, free: 5.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.01796, allocations: 192 / 335 MB, free: 5.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.594e-05/0.01802, allocations: 40.12 kB / 335.1 MB, free: 5.531 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.01803, allocations: 24 kB / 335.1 MB, free: 5.508 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009888/0.01902, allocations: 0.8511 MB / 335.9 MB, free: 4.652 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003574/0.02259, allocations: 2.879 MB / 338.8 MB, free: 1.656 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000712/0.02331, allocations: 0.6218 MB / 339.4 MB, free: 1.023 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004143/0.02372, allocations: 391.2 kB / 339.8 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.271e-05/0.02376, allocations: 16.66 kB / 339.8 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.02379, allocations: 43.2 kB / 339.9 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of pre-optimization done (n=69): time 2.414e-06/0.0238, allocations: 0 / 339.9 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.002792/0.02659, allocations: 2.194 MB / 342.1 MB, free: 14.34 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.099e-05/0.02662, allocations: 60.06 kB / 342.1 MB, free: 14.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004557/0.02707, allocations: 0.6173 MB / 342.7 MB, free: 13.64 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.79e-05/0.02711, allocations: 37.7 kB / 342.8 MB, free: 13.6 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002022/0.02731, allocations: 452.3 kB / 343.2 MB, free: 13.15 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000134/0.02745, allocations: 277.6 kB / 343.5 MB, free: 12.88 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001515/0.0276, allocations: 142.6 kB / 343.6 MB, free: 12.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003412/0.02794, allocations: 390.8 kB / 344 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004049/0.02835, allocations: 329.8 kB / 344.3 MB, free: 12.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004952/0.02884, allocations: 476.5 kB / 344.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008991/0.02974, allocations: 0.8008 MB / 345.6 MB, free: 10.65 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.02974, allocations: 0 / 345.6 MB, free: 10.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001255/0.031, allocations: 1.111 MB / 346.7 MB, free: 9.531 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.03102, allocations: 19.91 kB / 346.7 MB, free: 9.512 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.03102, allocations: 4 kB / 346.7 MB, free: 9.508 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003346/0.03136, allocations: 187.5 kB / 346.9 MB, free: 9.324 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004281/0.03179, allocations: 203.7 kB / 347.1 MB, free: 9.125 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002416/0.0342, allocations: 2.738 MB / 349.9 MB, free: 6.277 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002832/0.03449, allocations: 32.17 kB / 349.9 MB, free: 6.246 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.628e-05/0.03453, allocations: 43.92 kB / 349.9 MB, free: 6.203 MB / 314.7 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.000276/0.03481, allocations: 225.7 kB / 350.1 MB, free: 5.973 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.263e-05/0.03489, allocations: 83.48 kB / 350.2 MB, free: 5.891 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001108/0.035, allocations: 95.19 kB / 350.3 MB, free: 5.789 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.03501, allocations: 8 kB / 350.3 MB, free: 5.781 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.547e-05/0.03502, allocations: 4 kB / 350.3 MB, free: 5.777 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.03503, allocations: 7.984 kB / 350.3 MB, free: 5.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008929/0.03592, allocations: 0.7084 MB / 351 MB, free: 5.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.03593, allocations: 3.984 kB / 351.1 MB, free: 5.016 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003459/0.03627, allocations: 147.8 kB / 351.2 MB, free: 4.871 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002942/0.03657, allocations: 182.9 kB / 351.4 MB, free: 4.691 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.668e-05/0.0366, allocations: 23.92 kB / 351.4 MB, free: 4.668 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002285/0.03889, allocations: 2.756 MB / 354.2 MB, free: 1.805 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.03889, allocations: 3.984 kB / 354.2 MB, free: 1.801 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001572/0.04046, allocations: 1.416 MB / 355.6 MB, free: 372 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.165e-05/0.04053, allocations: 75.47 kB / 355.6 MB, free: 296 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.81e-05/0.04059, allocations: 19.94 kB / 355.7 MB, free: 276 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000283/0.04087, allocations: 55.95 kB / 355.7 MB, free: 220 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.04098, allocations: 52.55 kB / 355.8 MB, free: 168 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.439e-05/0.04101, allocations: 27.98 kB / 355.8 MB, free: 140 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003351/0.04135, allocations: 427.1 kB / 356.2 MB, free: 15.73 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04135, allocations: 3.938 kB / 356.2 MB, free: 15.72 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005392/0.04189, allocations: 243.9 kB / 356.5 MB, free: 15.48 MB / 330.7 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.002121/0.04401, allocations: 2 MB / 358.5 MB, free: 13.45 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001279/0.04529, allocations: 0.9942 MB / 359.5 MB, free: 12.44 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.04529, allocations: 4 kB / 359.5 MB, free: 12.44 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006883/0.04598, allocations: 0.6117 MB / 360.1 MB, free: 11.81 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000469/0.04645, allocations: 147.3 kB / 360.2 MB, free: 11.67 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0075/0.05395, allocations: 7.276 MB / 367.5 MB, free: 4.16 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002483/0.0542, allocations: 399.1 kB / 367.9 MB, free: 3.734 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002464/0.05444, allocations: 97.45 kB / 368 MB, free: 3.637 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000296/0.05474, allocations: 320.4 kB / 368.3 MB, free: 3.324 MB / 330.7 MB Notification: Performance of SimCode: time 9.61e-07/0.05474, allocations: 0 / 368.3 MB, free: 3.324 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.034/0.08874, allocations: 20.76 MB / 389 MB, free: 14.88 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.625/7.714, allocations: 7.875 kB / 389.1 MB, free: 14.87 MB / 362.7 MB " [Timeout remaining time 652] (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: 9.43915353808552] 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'] 7.809892155230045 7.818491764 7.802475203 Calling exit ...