Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001261/0.001261, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001409/0.001409, allocations: 216.2 kB / 24.53 MB, free: 4.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.364/1.364, allocations: 230.6 MB / 258.3 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 55.86 kB / 378.6 MB, free: 3.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2392, allocations: 53.36 MB / 431.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007414/0.2466, allocations: 6.116 MB / 438.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002765/0.2494, allocations: 1.564 MB / 439.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003709/0.2497, allocations: 23.88 kB / 439.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003775/0.2501, allocations: 174.3 kB / 439.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005315/0.2506, allocations: 297.2 kB / 440.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008835/0.2515, allocations: 411.4 kB / 440.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001439/0.253, allocations: 1.399 MB / 441.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004904/0.2534, allocations: 301.7 kB / 442.2 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006573/0.2541, allocations: 0.5062 MB / 442.7 MB, free: 12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006937/0.2548, allocations: 0.5679 MB / 443.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001699/0.255, allocations: 136 kB / 443.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002934/0.2553, allocations: 180 kB / 443.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002257/0.2555, allocations: 279.2 kB / 443.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005008/0.256, allocations: 0.5833 MB / 444.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001596/0.2576, allocations: 1.55 MB / 446 MB, free: 8.711 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.201e-05/0.2576, allocations: 8 kB / 446 MB, free: 8.703 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2576, allocations: 0 / 446 MB, free: 8.703 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.92e-05/0.2576, allocations: 0 / 446 MB, free: 8.703 MB / 350.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.002973/0.2606, allocations: 1.338 MB / 447.3 MB, free: 7.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.2606, allocations: 8.031 kB / 447.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.561e-05/0.2607, allocations: 22.19 kB / 447.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001684/0.2609, allocations: 139.6 kB / 447.5 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003685/0.2612, allocations: 128.2 kB / 447.6 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008295/0.262, allocations: 0.4978 MB / 448.1 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.984e-05/0.2621, allocations: 70.31 kB / 448.2 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/0.2622, allocations: 88.38 kB / 448.3 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.2638, allocations: 0.8545 MB / 449.1 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.046e-05/0.2638, allocations: 4 kB / 449.1 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.19e-05/0.2639, allocations: 40 kB / 449.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.278e-05/0.2639, allocations: 24 kB / 449.2 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/0.2656, allocations: 0.8472 MB / 450 MB, free: 4.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005369/0.2709, allocations: 3.15 MB / 453.2 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.2721, allocations: 0.6296 MB / 453.8 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006871/0.2728, allocations: 387.2 kB / 454.2 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.891e-05/0.2728, allocations: 20.62 kB / 454.2 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/0.2729, allocations: 39.22 kB / 454.3 MB, free: 216 kB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 1.994e-06/0.2729, allocations: 4 kB / 454.3 MB, free: 212 kB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004485/0.2773, allocations: 2.204 MB / 456.5 MB, free: 13.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/0.2774, allocations: 60.06 kB / 456.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007072/0.2781, allocations: 0.6058 MB / 457.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.142e-05/0.2782, allocations: 37.7 kB / 457.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003102/0.2785, allocations: 452.2 kB / 457.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002127/0.2787, allocations: 273.6 kB / 457.9 MB, free: 12.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002603/0.2789, allocations: 150.5 kB / 458 MB, free: 12.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.2791, allocations: 394.7 kB / 458.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006434/0.2798, allocations: 321.9 kB / 458.7 MB, free: 11.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007633/0.2805, allocations: 472.5 kB / 459.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/0.2819, allocations: 0.8047 MB / 460 MB, free: 10.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2819, allocations: 0 / 460 MB, free: 10.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002147/0.2841, allocations: 1.118 MB / 461.1 MB, free: 9.172 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.2841, allocations: 11.98 kB / 461.1 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.2841, allocations: 4 kB / 461.1 MB, free: 9.156 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005269/0.2846, allocations: 183.6 kB / 461.3 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008412/0.2855, allocations: 199.7 kB / 461.5 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003738/0.2892, allocations: 2.772 MB / 464.3 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006159/0.2898, allocations: 40.02 kB / 464.3 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.336e-05/0.2899, allocations: 35.98 kB / 464.4 MB, free: 5.824 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.0003666/0.2903, allocations: 238.2 kB / 464.6 MB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001513/0.2904, allocations: 83.48 kB / 464.7 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000193/0.2906, allocations: 91.27 kB / 464.8 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.902e-06/0.2906, allocations: 8 kB / 464.8 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.2906, allocations: 0 / 464.8 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.2906, allocations: 3.984 kB / 464.8 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.2918, allocations: 0.8681 MB / 465.6 MB, free: 4.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.2918, allocations: 128 / 465.6 MB, free: 4.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000713/0.2925, allocations: 151.8 kB / 465.8 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005187/0.293, allocations: 179.5 kB / 466 MB, free: 4.156 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-05/0.2931, allocations: 19.98 kB / 466 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003657/0.2967, allocations: 2.795 MB / 468.8 MB, free: 1.234 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2967, allocations: 0 / 468.8 MB, free: 1.234 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002691/0.2994, allocations: 1.435 MB / 470.2 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/0.2996, allocations: 71.47 kB / 470.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/0.2997, allocations: 20 kB / 470.3 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006098/0.3003, allocations: 51.95 kB / 470.3 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.3004, allocations: 52.55 kB / 470.4 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.032e-05/0.3005, allocations: 27.98 kB / 470.4 MB, free: 15.56 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005311/0.301, allocations: 427.1 kB / 470.8 MB, free: 15.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.301, allocations: 0 / 470.8 MB, free: 15.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008277/0.3018, allocations: 243.9 kB / 471.1 MB, free: 14.91 MB / 382.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.003104/0.3049, allocations: 1.996 MB / 473.1 MB, free: 12.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002294/0.3072, allocations: 0.9942 MB / 474.1 MB, free: 11.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.3072, allocations: 0 / 474.1 MB, free: 11.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001367/0.3086, allocations: 0.6197 MB / 474.7 MB, free: 11.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007832/0.3094, allocations: 138.9 kB / 474.8 MB, free: 11.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01209/0.3215, allocations: 7.468 MB / 482.3 MB, free: 3.414 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006088/0.3221, allocations: 0.9814 MB / 483.3 MB, free: 2.402 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003663/0.3225, allocations: 93.45 kB / 483.4 MB, free: 2.309 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004761/0.3229, allocations: 315.3 kB / 483.7 MB, free: 2 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3229, allocations: 0 / 483.7 MB, free: 2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07038/0.3933, allocations: 19.79 MB / 0.4917 GB, free: 14.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.63, allocations: 8.062 kB / 0.4917 GB, free: 14.49 MB / 414.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1e-08 --stepSize=1.9988e-12 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.935484040004667] 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.801469105004799 12.817609896 12.556951581 Calling exit ...