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.001586/0.001586, allocations: 108 kB / 20.43 MB, free: 1.473 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.001985/0.001985, allocations: 188 kB / 23.72 MB, free: 4.719 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.422/1.422, allocations: 225.6 MB / 252.5 MB, free: 13.04 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="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 0.001745/0.001745, allocations: 47.92 kB / 370.5 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2738, allocations: 52.17 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007964/0.2818, allocations: 6.108 MB / 428.7 MB, free: 8.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003438/0.2852, allocations: 1.533 MB / 430.3 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000576/0.2858, allocations: 15.94 kB / 430.3 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004385/0.2862, allocations: 174.2 kB / 430.5 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000601/0.2868, allocations: 293.3 kB / 430.8 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008812/0.2877, allocations: 415.4 kB / 431.2 MB, free: 6.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001525/0.2892, allocations: 1.395 MB / 432.6 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005248/0.2898, allocations: 297.7 kB / 432.8 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006991/0.2905, allocations: 0.5023 MB / 433.3 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006932/0.2912, allocations: 0.5719 MB / 433.9 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000173/0.2913, allocations: 132 kB / 434 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002784/0.2916, allocations: 168 kB / 434.2 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002301/0.2918, allocations: 275.2 kB / 434.5 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000524/0.2924, allocations: 0.5871 MB / 435.1 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00158/0.2939, allocations: 1.549 MB / 436.6 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2939, allocations: 0 / 436.6 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2939, allocations: 0 / 436.6 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.689e-05/0.294, allocations: 0 / 436.6 MB, free: 0.5586 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.002693/0.2967, allocations: 1.33 MB / 437.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.2967, allocations: 11.97 kB / 438 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001758/0.2969, allocations: 139.6 kB / 438.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.2971, allocations: 120.2 kB / 438.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008908/0.298, allocations: 0.5016 MB / 438.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.855e-05/0.298, allocations: 66.38 kB / 438.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.2981, allocations: 88.33 kB / 438.9 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.2997, allocations: 0.8586 MB / 439.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.2997, allocations: 0 / 439.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.014e-05/0.2998, allocations: 36 kB / 439.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.571e-05/0.2998, allocations: 24 kB / 439.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001665/0.3015, allocations: 0.8472 MB / 440.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005514/0.307, allocations: 3.15 MB / 443.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.3081, allocations: 0.6412 MB / 444.4 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006872/0.3088, allocations: 399.2 kB / 444.8 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.337e-05/0.3089, allocations: 8.656 kB / 444.8 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.3089, allocations: 39.22 kB / 444.9 MB, free: 8.098 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 1.643e-06/0.3089, allocations: 0 / 444.9 MB, free: 8.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004435/0.3133, allocations: 2.202 MB / 447.1 MB, free: 5.867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.3134, allocations: 64.06 kB / 447.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007208/0.3141, allocations: 0.6057 MB / 447.7 MB, free: 5.184 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.798e-05/0.3142, allocations: 41.7 kB / 447.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003374/0.3145, allocations: 448.3 kB / 448.2 MB, free: 4.691 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002247/0.3147, allocations: 269.7 kB / 448.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002509/0.315, allocations: 150.6 kB / 448.6 MB, free: 4.273 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002083/0.3152, allocations: 390.8 kB / 449 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006496/0.3158, allocations: 325.9 kB / 449.3 MB, free: 3.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007739/0.3166, allocations: 472.5 kB / 449.8 MB, free: 3.051 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001419/0.318, allocations: 0.8086 MB / 450.6 MB, free: 2.195 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.318, allocations: 0 / 450.6 MB, free: 2.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00214/0.3202, allocations: 1.115 MB / 451.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.3202, allocations: 8 kB / 451.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.3202, allocations: 4 kB / 451.7 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005533/0.3207, allocations: 184.8 kB / 451.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008667/0.3216, allocations: 199.7 kB / 452.1 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003874/0.3255, allocations: 2.777 MB / 454.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006262/0.3261, allocations: 36.03 kB / 454.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.092e-05/0.3262, allocations: 35.98 kB / 454.9 MB, free: 13.72 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.0004054/0.3266, allocations: 237.6 kB / 455.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.3267, allocations: 87.42 kB / 455.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00019/0.3269, allocations: 95.27 kB / 455.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3269, allocations: 4 kB / 455.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.908e-05/0.3269, allocations: 7.938 kB / 455.4 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.327, allocations: 3.984 kB / 455.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00113/0.3281, allocations: 0.8642 MB / 456.2 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.3281, allocations: 0 / 456.2 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007294/0.3288, allocations: 147.8 kB / 456.4 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005748/0.3294, allocations: 187.4 kB / 456.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.186e-05/0.3295, allocations: 20 kB / 456.6 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003783/0.3332, allocations: 2.797 MB / 459.4 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3332, allocations: 0 / 459.4 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00272/0.336, allocations: 1.424 MB / 460.8 MB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001529/0.3361, allocations: 75.45 kB / 460.9 MB, free: 7.602 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.3362, allocations: 20 kB / 460.9 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005886/0.3368, allocations: 51.97 kB / 460.9 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/0.337, allocations: 52.53 kB / 461 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.879e-05/0.337, allocations: 27.98 kB / 461 MB, free: 7.453 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005516/0.3376, allocations: 427.1 kB / 461.4 MB, free: 7.039 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3376, allocations: 0 / 461.4 MB, free: 7.039 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008157/0.3384, allocations: 236 kB / 461.7 MB, free: 6.809 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.003051/0.3414, allocations: 1.996 MB / 463.7 MB, free: 4.781 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002265/0.3437, allocations: 1.009 MB / 464.7 MB, free: 3.754 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.3437, allocations: 0 / 464.7 MB, free: 3.754 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.345, allocations: 0.6199 MB / 465.3 MB, free: 3.121 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000741/0.3458, allocations: 143.3 kB / 465.4 MB, free: 2.984 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01237/0.3582, allocations: 7.456 MB / 472.9 MB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007111/0.3589, allocations: 0.9775 MB / 473.9 MB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000402/0.3593, allocations: 93.45 kB / 474 MB, free: 10.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000459/0.3597, allocations: 323.3 kB / 474.3 MB, free: 9.887 MB / 382.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3597, allocations: 0 / 474.3 MB, free: 9.887 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.063/0.4227, allocations: 19.74 MB / 494 MB, free: 6.41 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/12.82, allocations: 3.266 kB / 494 MB, free: 6.41 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.212531034834683] 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'] 12.933570499066263 12.949323396 12.652185442 Calling exit ...