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.001888/0.001888, allocations: 114.9 kB / 19.04 MB, free: 3.281 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.002515/0.002515, allocations: 190 kB / 22.21 MB, free: 112 kB / 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.515/1.515, allocations: 225.6 MB / 250.8 MB, free: 13.38 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: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="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",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="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",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 47.92 kB / 368.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.3085, allocations: 52.13 MB / 420.9 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.008197/0.3167, allocations: 6.111 MB / 427 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003827/0.3205, allocations: 1.525 MB / 428.5 MB, free: 7.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005932/0.3211, allocations: 19.94 kB / 428.5 MB, free: 7.566 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004685/0.3215, allocations: 178.2 kB / 428.7 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006923/0.3222, allocations: 297.2 kB / 429 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008956/0.3231, allocations: 411.4 kB / 429.4 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001399/0.3245, allocations: 1.395 MB / 430.8 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004605/0.325, allocations: 293.3 kB / 431.1 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006355/0.3256, allocations: 0.4945 MB / 431.6 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006925/0.3263, allocations: 0.5641 MB / 432.1 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001691/0.3265, allocations: 136 kB / 432.3 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002751/0.3268, allocations: 168 kB / 432.4 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002986/0.3271, allocations: 283.1 kB / 432.7 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005303/0.3276, allocations: 0.5794 MB / 433.3 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001591/0.3292, allocations: 1.539 MB / 434.8 MB, free: 1.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3292, allocations: 0 / 434.8 MB, free: 1.227 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3292, allocations: 8 kB / 434.8 MB, free: 1.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.78e-05/0.3292, allocations: 0 / 434.8 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.003019/0.3322, allocations: 1.405 MB / 436.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.3323, allocations: 8.031 kB / 436.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002086/0.3325, allocations: 120.2 kB / 436.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009591/0.3334, allocations: 0.5621 MB / 436.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.244e-05/0.3335, allocations: 66.38 kB / 437 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001689/0.3337, allocations: 88.33 kB / 437.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001845/0.3355, allocations: 0.8512 MB / 437.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.3355, allocations: 3.938 kB / 437.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001041/0.3356, allocations: 43.94 kB / 438 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.36e-05/0.3357, allocations: 20 kB / 438 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001715/0.3374, allocations: 0.855 MB / 438.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00595/0.3433, allocations: 3.219 MB / 442.1 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001213/0.3445, allocations: 0.6339 MB / 442.7 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007208/0.3453, allocations: 391.1 kB / 443.1 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.369e-05/0.3453, allocations: 12.5 kB / 443.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/0.3454, allocations: 43.12 kB / 443.1 MB, free: 8.664 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.104e-06/0.3454, allocations: 0 / 443.1 MB, free: 8.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.00475/0.3501, allocations: 2.273 MB / 445.4 MB, free: 6.344 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.384e-05/0.3502, allocations: 64.06 kB / 445.5 MB, free: 6.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007549/0.3509, allocations: 0.6096 MB / 446.1 MB, free: 5.656 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.467e-05/0.351, allocations: 37.7 kB / 446.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000341/0.3513, allocations: 452.2 kB / 446.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002257/0.3515, allocations: 277.7 kB / 446.8 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002726/0.3518, allocations: 146.6 kB / 447 MB, free: 4.738 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002085/0.352, allocations: 382.8 kB / 447.4 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006611/0.3527, allocations: 329.9 kB / 447.7 MB, free: 4.035 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009382/0.3536, allocations: 480.4 kB / 448.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001461/0.3551, allocations: 0.7969 MB / 448.9 MB, free: 2.668 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3551, allocations: 0 / 448.9 MB, free: 2.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002303/0.3574, allocations: 1.118 MB / 450.1 MB, free: 1.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.192e-05/0.3574, allocations: 11.28 kB / 450.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.3574, allocations: 4 kB / 450.1 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005953/0.358, allocations: 188.8 kB / 450.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009236/0.359, allocations: 195.7 kB / 450.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004196/0.3631, allocations: 2.884 MB / 453.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007149/0.3639, allocations: 40.03 kB / 453.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.059e-05/0.3639, allocations: 32 kB / 453.4 MB, free: 14.05 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.0004254/0.3644, allocations: 240.4 kB / 453.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.3645, allocations: 91.42 kB / 453.7 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001801/0.3647, allocations: 91.27 kB / 453.8 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.3647, allocations: 4 kB / 453.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-05/0.3647, allocations: 4 kB / 453.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.3647, allocations: 3.984 kB / 453.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00121/0.3659, allocations: 0.8884 MB / 454.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.366, allocations: 0 / 454.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007388/0.3667, allocations: 147.8 kB / 454.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005321/0.3672, allocations: 192.7 kB / 455.1 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.027e-05/0.3673, allocations: 19.98 kB / 455.1 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00439/0.3717, allocations: 2.895 MB / 458 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3717, allocations: 4 kB / 458 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002784/0.3745, allocations: 1.42 MB / 459.4 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.3746, allocations: 156.6 kB / 459.5 MB, free: 7.684 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.3747, allocations: 12.25 kB / 459.6 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005974/0.3753, allocations: 59.95 kB / 459.6 MB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.3755, allocations: 48.59 kB / 459.7 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.93e-05/0.3755, allocations: 23.98 kB / 459.7 MB, free: 7.539 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005343/0.3761, allocations: 431.1 kB / 460.1 MB, free: 7.121 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3761, allocations: 0 / 460.1 MB, free: 7.121 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00082/0.3769, allocations: 243.9 kB / 460.3 MB, free: 6.883 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.0002571/0.3771, allocations: 139.2 kB / 460.5 MB, free: 6.738 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002307/0.3794, allocations: 0.9976 MB / 461.5 MB, free: 5.727 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.3794, allocations: 0 / 461.5 MB, free: 5.727 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001488/0.3809, allocations: 0.6082 MB / 462.1 MB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007617/0.3817, allocations: 147 kB / 462.2 MB, free: 4.965 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003456/0.3852, allocations: 2.025 MB / 464.3 MB, free: 2.902 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007875/0.3859, allocations: 0.9891 MB / 465.2 MB, free: 1.887 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004589/0.3864, allocations: 97.45 kB / 465.3 MB, free: 1.789 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.3866, allocations: 55.42 kB / 465.4 MB, free: 1.734 MB / 366.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3866, allocations: 4 kB / 465.4 MB, free: 1.73 MB / 366.1 MB Notification: Performance of Templates: time 0.02164/0.4082, allocations: 11.6 MB / 477 MB, free: 6.254 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.199511235579848]