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.001554/0.001554, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001354/0.001354, allocations: 188.3 kB / 24.49 MB, free: 3.941 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.383/1.383, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.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.001459/0.001459, allocations: 43.94 kB / 371.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2439, allocations: 52.18 MB / 423.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007295/0.2512, allocations: 5.336 MB / 428.7 MB, free: 9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003561/0.2547, allocations: 1.478 MB / 430.2 MB, free: 7.512 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000626/0.2554, allocations: 19.94 kB / 430.2 MB, free: 7.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004219/0.2558, allocations: 174.2 kB / 430.4 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006943/0.2565, allocations: 289.3 kB / 430.7 MB, free: 7.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008921/0.2574, allocations: 411.4 kB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001551/0.2589, allocations: 1.399 MB / 432.5 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004663/0.2594, allocations: 297.7 kB / 432.7 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006689/0.2601, allocations: 0.5062 MB / 433.3 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007006/0.2608, allocations: 0.568 MB / 433.8 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001725/0.2609, allocations: 136 kB / 434 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002857/0.2612, allocations: 164 kB / 434.1 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002645/0.2615, allocations: 279.2 kB / 434.4 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004875/0.262, allocations: 497.9 kB / 434.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001518/0.2635, allocations: 1.553 MB / 436.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2635, allocations: 0 / 436.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2635, allocations: 3.938 kB / 436.4 MB, free: 1.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.2635, allocations: 0 / 436.4 MB, free: 1.219 MB / 334.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.002591/0.2661, allocations: 1.334 MB / 437.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.2661, allocations: 12.03 kB / 437.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.718e-05/0.2662, allocations: 26.19 kB / 437.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001649/0.2663, allocations: 135.6 kB / 437.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001961/0.2665, allocations: 124.2 kB / 438.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008394/0.2674, allocations: 0.4938 MB / 438.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.904e-05/0.2674, allocations: 62.38 kB / 438.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001502/0.2676, allocations: 96.31 kB / 438.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00184/0.2694, allocations: 1.109 MB / 439.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.2694, allocations: 0 / 439.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.109e-05/0.2695, allocations: 36 kB / 439.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.132e-05/0.2696, allocations: 20 kB / 439.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001725/0.2713, allocations: 0.8511 MB / 440.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005483/0.2768, allocations: 2.885 MB / 443.6 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.2779, allocations: 0.6332 MB / 444.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007066/0.2786, allocations: 395.2 kB / 444.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.495e-05/0.2787, allocations: 12.66 kB / 444.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.058e-05/0.2787, allocations: 47.2 kB / 444.7 MB, free: 8.688 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.875e-06/0.2787, allocations: 0 / 444.7 MB, free: 8.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004865/0.2836, allocations: 2.194 MB / 446.9 MB, free: 6.465 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.13e-05/0.2837, allocations: 60.06 kB / 446.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007749/0.2844, allocations: 0.6096 MB / 447.5 MB, free: 5.777 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.301e-05/0.2845, allocations: 41.7 kB / 447.6 MB, free: 5.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000335/0.2848, allocations: 456.3 kB / 448 MB, free: 5.277 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002304/0.2851, allocations: 273.7 kB / 448.3 MB, free: 5.008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002824/0.2853, allocations: 146.6 kB / 448.4 MB, free: 4.859 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002182/0.2856, allocations: 386.8 kB / 448.8 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000654/0.2862, allocations: 321.9 kB / 449.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007998/0.287, allocations: 476.5 kB / 449.6 MB, free: 3.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.2884, allocations: 0.8008 MB / 450.4 MB, free: 2.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.2884, allocations: 0 / 450.4 MB, free: 2.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00224/0.2907, allocations: 1.119 MB / 451.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.2907, allocations: 8 kB / 451.5 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.2907, allocations: 4 kB / 451.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005896/0.2913, allocations: 187.6 kB / 451.7 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009071/0.2922, allocations: 199.7 kB / 451.9 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004014/0.2962, allocations: 2.745 MB / 454.6 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007387/0.297, allocations: 40.03 kB / 454.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.269e-05/0.2971, allocations: 28 kB / 454.7 MB, free: 14.36 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.0004182/0.2975, allocations: 237.5 kB / 454.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.2976, allocations: 95.41 kB / 455 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001882/0.2978, allocations: 95.27 kB / 455.1 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.2978, allocations: 4 kB / 455.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/0.2978, allocations: 4 kB / 455.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.2978, allocations: 7.922 kB / 455.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.2989, allocations: 0.7085 MB / 455.9 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.2989, allocations: 0 / 455.9 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007409/0.2996, allocations: 143.8 kB / 456 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005494/0.3002, allocations: 195.5 kB / 456.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.298e-05/0.3002, allocations: 24.11 kB / 456.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003719/0.304, allocations: 2.754 MB / 459 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.304, allocations: 0 / 459 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002649/0.3066, allocations: 1.424 MB / 460.4 MB, free: 8.488 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/0.3068, allocations: 75.47 kB / 460.5 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.3069, allocations: 12 kB / 460.5 MB, free: 8.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006096/0.3075, allocations: 55.95 kB / 460.5 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.3076, allocations: 52.55 kB / 460.6 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.703e-05/0.3076, allocations: 27.98 kB / 460.6 MB, free: 8.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005197/0.3082, allocations: 431.1 kB / 461 MB, free: 7.855 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3082, allocations: 0 / 461 MB, free: 7.855 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007964/0.309, allocations: 236 kB / 461.3 MB, free: 7.625 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.003005/0.312, allocations: 2.006 MB / 463.3 MB, free: 5.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002274/0.3142, allocations: 1.001 MB / 464.3 MB, free: 4.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.3143, allocations: 4 kB / 464.3 MB, free: 4.566 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001361/0.3156, allocations: 0.6121 MB / 464.9 MB, free: 3.941 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007454/0.3164, allocations: 147.4 kB / 465 MB, free: 3.797 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01323/0.3296, allocations: 7.437 MB / 472.5 MB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004793/0.3301, allocations: 399.1 kB / 472.9 MB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004137/0.3305, allocations: 89.47 kB / 472.9 MB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000482/0.331, allocations: 323.3 kB / 473.3 MB, free: 11.3 MB / 382.1 MB Notification: Performance of SimCode: time 1.152e-06/0.331, allocations: 4 kB / 473.3 MB, free: 11.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05454/0.3855, allocations: 20.43 MB / 493.7 MB, free: 7.242 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/12.96, allocations: 7.5 kB / 493.7 MB, free: 7.238 MB / 398.1 MB " [Timeout remaining time 647] (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: 15.2840731209144] 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'] 13.12425631203223 13.139396217 12.872861905 Calling exit ...