Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 113.6 kB / 21.19 MB, free: 0.7031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001648/0.001648, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.636/1.636, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 51.92 kB / 347.3 MB, free: 10.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3462, allocations: 49.15 MB / 396.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007581/0.3538, allocations: 5.744 MB / 402.2 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004856/0.3586, allocations: 1.458 MB / 403.6 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001708/0.3603, allocations: 18.53 kB / 403.6 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008321/0.3612, allocations: 158.4 kB / 403.8 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001848/0.363, allocations: 283.8 kB / 404.1 MB, free: 3.477 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001941/0.365, allocations: 350.5 kB / 404.4 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00299/0.368, allocations: 1.242 MB / 405.6 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007818/0.3687, allocations: 303 kB / 405.9 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001282/0.37, allocations: 469.7 kB / 406.4 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001312/0.3713, allocations: 0.5231 MB / 406.9 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005901/0.3719, allocations: 124.3 kB / 407 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001066/0.373, allocations: 160.1 kB / 407.2 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004857/0.3735, allocations: 251.3 kB / 407.4 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001784/0.3753, allocations: 0.5357 MB / 408 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003511/0.3788, allocations: 1.419 MB / 409.4 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.3788, allocations: 0 / 409.4 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.3788, allocations: 5.438 kB / 409.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.224e-05/0.3789, allocations: 0 / 409.4 MB, free: 0.8477 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.00434/0.3832, allocations: 1.241 MB / 410.6 MB, free: 40 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.3832, allocations: 13.58 kB / 410.7 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003293/0.3836, allocations: 133.2 kB / 410.8 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003308/0.3839, allocations: 108.5 kB / 410.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001031/0.3849, allocations: 461.5 kB / 411.3 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.05e-05/0.385, allocations: 70.34 kB / 411.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001617/0.3852, allocations: 81.23 kB / 411.5 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00192/0.3871, allocations: 0.8805 MB / 412.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.3871, allocations: 0 / 412.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.17e-05/0.3872, allocations: 36.75 kB / 412.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.889e-05/0.3872, allocations: 19.06 kB / 412.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/0.389, allocations: 0.7919 MB / 413.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006007/0.395, allocations: 2.955 MB / 416.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/0.3962, allocations: 0.6083 MB / 416.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008073/0.397, allocations: 368.6 kB / 417.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.968e-05/0.3971, allocations: 20.97 kB / 417.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.445e-05/0.3972, allocations: 39.53 kB / 417.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 3.015e-06/0.3972, allocations: 0 / 417.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.005307/0.4025, allocations: 2.129 MB / 419.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.689e-05/0.4025, allocations: 59.22 kB / 419.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007875/0.4033, allocations: 0.5101 MB / 419.9 MB, free: 9.992 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.544e-05/0.4034, allocations: 36.45 kB / 419.9 MB, free: 9.953 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003341/0.4037, allocations: 397.8 kB / 420.3 MB, free: 9.602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002578/0.404, allocations: 270.6 kB / 420.6 MB, free: 9.363 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003038/0.4043, allocations: 132.3 kB / 420.7 MB, free: 9.277 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002134/0.4045, allocations: 377.9 kB / 421.1 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006451/0.4052, allocations: 304.5 kB / 421.4 MB, free: 8.766 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008467/0.406, allocations: 428.9 kB / 421.8 MB, free: 8.484 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.4075, allocations: 0.7426 MB / 422.5 MB, free: 8.031 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4075, allocations: 0 / 422.5 MB, free: 8.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002565/0.41, allocations: 1.038 MB / 423.6 MB, free: 7.477 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.4101, allocations: 6.312 kB / 423.6 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.4101, allocations: 2.844 kB / 423.6 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007048/0.4108, allocations: 187.6 kB / 423.8 MB, free: 7.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000923/0.4117, allocations: 183 kB / 424 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004532/0.4162, allocations: 2.758 MB / 426.7 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.4173, allocations: 28.05 kB / 426.7 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/0.4174, allocations: 31.98 kB / 426.8 MB, free: 4.418 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (84): * Single equations (assignments): 83 * 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,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006703/0.4181, allocations: 213.7 kB / 427 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002248/0.4183, allocations: 79.53 kB / 427.1 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002287/0.4186, allocations: 86.17 kB / 427.1 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.4186, allocations: 11.94 kB / 427.2 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-05/0.4186, allocations: 0 / 427.2 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.4186, allocations: 8.109 kB / 427.2 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001406/0.42, allocations: 0.8134 MB / 428 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.42, allocations: 4 kB / 428 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000797/0.4208, allocations: 143.8 kB / 428.1 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005901/0.4214, allocations: 180.6 kB / 428.3 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.115e-05/0.4215, allocations: 23.98 kB / 428.3 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004447/0.4259, allocations: 2.755 MB / 431.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4259, allocations: 0 / 431.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003014/0.4289, allocations: 1.389 MB / 432.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000363/0.4293, allocations: 63.52 kB / 432.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.4294, allocations: 16 kB / 432.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006511/0.4301, allocations: 51.95 kB / 432.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001808/0.4302, allocations: 60.48 kB / 432.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.286e-05/0.4303, allocations: 27.92 kB / 432.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005689/0.4309, allocations: 354.9 kB / 433 MB, free: 13.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4309, allocations: 0 / 433 MB, free: 13.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001146/0.432, allocations: 224.1 kB / 433.2 MB, free: 13.75 MB / 350.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.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * 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,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003477/0.4355, allocations: 1.953 MB / 435.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002667/0.4382, allocations: 0.9628 MB / 436.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.4382, allocations: 0 / 436.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001603/0.4398, allocations: 0.608 MB / 436.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.4409, allocations: 142.6 kB / 436.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01404/0.4549, allocations: 6.88 MB / 443.8 MB, free: 2.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006762/0.4556, allocations: 0.9576 MB / 444.7 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004286/0.4561, allocations: 77.05 kB / 444.8 MB, free: 1.926 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004252/0.4565, allocations: 299.3 kB / 445.1 MB, free: 1.633 MB / 350.1 MB Notification: Performance of SimCode: time 1.393e-06/0.4565, allocations: 0 / 445.1 MB, free: 1.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06052/0.517, allocations: 18.23 MB / 463.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.51/14.03, allocations: 4 kB / 463.3 MB, free: 15.32 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.95244768200064] 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'] 14.148969025998667 14.180616357 13.796076592 Calling exit ...