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.001134/0.001134, allocations: 76.06 kB / 20.67 MB, free: 3.891 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.001396/0.001396, allocations: 149.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.9531/0.9531, allocations: 173.4 MB / 200.4 MB, free: 9.465 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 2.325e-06/2.325e-06, allocations: 0 / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.445e-05/2.677e-05, allocations: 10.22 kB / 318.5 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006795/0.006822, allocations: 5.323 MB / 323.8 MB, free: 1.004 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003689/0.01051, allocations: 1.494 MB / 325.3 MB, free: 15.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001193/0.0117, allocations: 19.94 kB / 325.3 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004693/0.01217, allocations: 178.2 kB / 325.5 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006823/0.01286, allocations: 309 kB / 325.8 MB, free: 15 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009022/0.01376, allocations: 419.2 kB / 326.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001793/0.01555, allocations: 1.437 MB / 327.6 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005791/0.01613, allocations: 277.7 kB / 327.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001055/0.01719, allocations: 0.7642 MB / 328.6 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005821/0.01777, allocations: 438.8 kB / 329.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001925/0.01796, allocations: 136 kB / 329.2 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002959/0.01826, allocations: 168 kB / 329.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.01841, allocations: 283 kB / 329.7 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004573/0.01887, allocations: 415.1 kB / 330.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001639/0.02051, allocations: 1.616 MB / 331.7 MB, free: 9.059 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.02052, allocations: 0 / 331.7 MB, free: 9.059 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.025e-06/0.02052, allocations: 0 / 331.7 MB, free: 9.059 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.523e-05/0.02059, allocations: 0 / 331.7 MB, free: 9.059 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.002372/0.02296, allocations: 1.322 MB / 333 MB, free: 7.699 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.804e-05/0.02302, allocations: 12.92 kB / 333 MB, free: 7.688 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001313/0.02315, allocations: 135.6 kB / 333.1 MB, free: 7.547 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/0.02331, allocations: 120.2 kB / 333.3 MB, free: 7.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007078/0.02402, allocations: 0.4893 MB / 333.7 MB, free: 6.914 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.521e-05/0.02406, allocations: 70.36 kB / 333.8 MB, free: 6.848 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.02418, allocations: 92.33 kB / 333.9 MB, free: 6.758 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.02564, allocations: 1.106 MB / 335 MB, free: 5.586 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.02566, allocations: 192 / 335 MB, free: 5.586 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.241e-05/0.02572, allocations: 40.12 kB / 335.1 MB, free: 5.547 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.02574, allocations: 20 kB / 335.1 MB, free: 5.527 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001202/0.02694, allocations: 0.8472 MB / 335.9 MB, free: 4.676 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003907/0.03085, allocations: 2.883 MB / 338.8 MB, free: 1.676 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007855/0.03163, allocations: 0.6296 MB / 339.4 MB, free: 1.035 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004552/0.03209, allocations: 395.2 kB / 339.8 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.415e-05/0.03213, allocations: 12.64 kB / 339.8 MB, free: 0.625 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.149e-05/0.03216, allocations: 39.22 kB / 339.9 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of pre-optimization done (n=69): time 2.705e-06/0.03217, allocations: 0 / 339.9 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.003059/0.03523, allocations: 2.19 MB / 342.1 MB, free: 14.35 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.938e-05/0.03527, allocations: 60.06 kB / 342.1 MB, free: 14.28 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000561/0.03583, allocations: 0.6173 MB / 342.7 MB, free: 13.66 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.787e-05/0.03587, allocations: 45.7 kB / 342.8 MB, free: 13.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002296/0.0361, allocations: 452.2 kB / 343.2 MB, free: 13.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001551/0.03626, allocations: 273.7 kB / 343.5 MB, free: 12.89 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.03643, allocations: 142.6 kB / 343.6 MB, free: 12.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.03656, allocations: 390.8 kB / 344 MB, free: 12.36 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004475/0.03701, allocations: 325.8 kB / 344.3 MB, free: 12.04 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007555/0.03776, allocations: 476.5 kB / 344.8 MB, free: 11.52 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009231/0.03869, allocations: 0.8008 MB / 345.6 MB, free: 10.67 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.03869, allocations: 0 / 345.6 MB, free: 10.67 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001375/0.04007, allocations: 1.119 MB / 346.7 MB, free: 9.543 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.04009, allocations: 11.94 kB / 346.7 MB, free: 9.531 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.0401, allocations: 4 kB / 346.7 MB, free: 9.527 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003561/0.04045, allocations: 188.7 kB / 346.9 MB, free: 9.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004638/0.04092, allocations: 195.8 kB / 347.1 MB, free: 9.148 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002422/0.04334, allocations: 2.745 MB / 349.8 MB, free: 6.293 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003975/0.04374, allocations: 32.17 kB / 349.9 MB, free: 6.262 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.609e-05/0.0438, allocations: 39.98 kB / 349.9 MB, free: 6.223 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.003223/0.04703, allocations: 233.7 kB / 350.1 MB, free: 5.984 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002195/0.04725, allocations: 87.47 kB / 350.2 MB, free: 5.898 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002046/0.04745, allocations: 99.19 kB / 350.3 MB, free: 5.793 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.04746, allocations: 8 kB / 350.3 MB, free: 5.785 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.601e-05/0.04747, allocations: 4 kB / 350.3 MB, free: 5.781 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.04748, allocations: 3.984 kB / 350.3 MB, free: 5.777 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/0.04859, allocations: 0.7045 MB / 351 MB, free: 5.031 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.0486, allocations: 0 / 351 MB, free: 5.031 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004666/0.04906, allocations: 147.8 kB / 351.2 MB, free: 4.887 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003414/0.0494, allocations: 179 kB / 351.4 MB, free: 4.711 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.761e-05/0.04944, allocations: 23.92 kB / 351.4 MB, free: 4.688 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002262/0.0517, allocations: 2.765 MB / 354.2 MB, free: 1.82 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.0517, allocations: 3.984 kB / 354.2 MB, free: 1.816 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001658/0.05336, allocations: 1.42 MB / 355.6 MB, free: 384 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.05346, allocations: 75.47 kB / 355.7 MB, free: 308 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.993e-05/0.05352, allocations: 19.94 kB / 355.7 MB, free: 288 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003059/0.05383, allocations: 51.95 kB / 355.7 MB, free: 236 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.64e-05/0.05392, allocations: 60.55 kB / 355.8 MB, free: 176 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.267e-05/0.05395, allocations: 23.98 kB / 355.8 MB, free: 152 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003307/0.05428, allocations: 431 kB / 356.2 MB, free: 15.73 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05428, allocations: 0 / 356.2 MB, free: 15.73 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006079/0.05489, allocations: 243.9 kB / 356.5 MB, free: 15.5 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.0019/0.05679, allocations: 1.995 MB / 358.5 MB, free: 13.47 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001318/0.0581, allocations: 0.994 MB / 359.5 MB, free: 12.46 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.05811, allocations: 4 kB / 359.5 MB, free: 12.46 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007231/0.05883, allocations: 0.6119 MB / 360.1 MB, free: 11.83 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000468/0.0593, allocations: 151.3 kB / 360.2 MB, free: 11.68 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007559/0.06686, allocations: 7.276 MB / 367.5 MB, free: 4.176 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/0.06713, allocations: 399.1 kB / 367.9 MB, free: 3.75 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002446/0.06737, allocations: 89.47 kB / 368 MB, free: 3.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000309/0.06768, allocations: 320.4 kB / 368.3 MB, free: 3.348 MB / 330.7 MB Notification: Performance of SimCode: time 9.61e-07/0.06768, allocations: 3.938 kB / 368.3 MB, free: 3.344 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03539/0.1031, allocations: 20.76 MB / 389 MB, free: 14.89 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.548/7.651, allocations: 3.938 kB / 389 MB, free: 14.89 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019984 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.550876029767096] 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.745858119800687 7.755826886 7.733255091 Calling exit ...