Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.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.001429/0.001429, allocations: 109.2 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.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.001586/0.001586, allocations: 213.4 kB / 23.74 MB, free: 4.688 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.449/1.449, allocations: 230.6 MB / 257.5 MB, free: 8.047 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.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001773/0.001773, allocations: 55.92 kB / 377.8 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2788, allocations: 53.35 MB / 431.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.009048/0.2878, allocations: 7.56 MB / 438.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01626/0.3041, allocations: 10.79 MB / 449.5 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001452/0.3055, allocations: 126.6 kB / 449.6 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002198/0.3077, allocations: 0.718 MB / 450.3 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004706/0.3124, allocations: 1.206 MB / 451.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002165/0.3146, allocations: 0.6723 MB / 452.2 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004808/0.3194, allocations: 2.574 MB / 454.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004572/0.3199, allocations: 180.3 kB / 454.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008434/0.3207, allocations: 0.5094 MB / 455.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008367/0.3215, allocations: 0.5395 MB / 456 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.3217, allocations: 56 kB / 456 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001941/0.3236, allocations: 0.7727 MB / 456.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002032/0.3238, allocations: 186.8 kB / 457 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007865/0.3246, allocations: 0.6715 MB / 457.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002817/0.3274, allocations: 1.96 MB / 459.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.3274, allocations: 0 / 459.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3274, allocations: 4 kB / 459.6 MB, free: 10.24 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.651e-05/0.3274, allocations: 3.984 kB / 459.6 MB, free: 10.24 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.003202/0.3306, allocations: 1.967 MB / 461.6 MB, free: 8.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.3307, allocations: 15.97 kB / 461.6 MB, free: 8.215 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001105/0.3308, allocations: 90.7 kB / 461.7 MB, free: 8.117 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002356/0.331, allocations: 203.7 kB / 461.9 MB, free: 7.918 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002126/0.3332, allocations: 1.251 MB / 463.2 MB, free: 6.609 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.788e-05/0.3332, allocations: 33 kB / 463.2 MB, free: 6.574 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.957e-05/0.3333, allocations: 44 kB / 463.2 MB, free: 6.531 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009537/0.3342, allocations: 0.5158 MB / 463.8 MB, free: 6.012 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.963e-05/0.3343, allocations: 7.922 kB / 463.8 MB, free: 6.004 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.987e-05/0.3343, allocations: 20 kB / 463.8 MB, free: 5.984 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.71e-05/0.3343, allocations: 16 kB / 463.8 MB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.3354, allocations: 472.1 kB / 464.3 MB, free: 5.512 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003514/0.3389, allocations: 2.058 MB / 466.3 MB, free: 3.375 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009601/0.3398, allocations: 0.4934 MB / 466.8 MB, free: 2.871 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007316/0.3406, allocations: 474.1 kB / 467.3 MB, free: 2.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005165/0.3457, allocations: 2.338 MB / 469.6 MB, free: 48 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007112/0.3464, allocations: 313.6 kB / 469.9 MB, free: 15.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=61): time 5.029e-06/0.3465, allocations: 3.984 kB / 469.9 MB, free: 15.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=65): time 0.005252/0.3517, allocations: 2.274 MB / 472.2 MB, free: 13.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/0.3518, allocations: 59.83 kB / 472.3 MB, free: 13.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00168/0.3534, allocations: 1.288 MB / 473.5 MB, free: 12.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.3e-05/0.3535, allocations: 33.7 kB / 473.6 MB, free: 12.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006578/0.3542, allocations: 0.7041 MB / 474.3 MB, free: 11.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002321/0.3544, allocations: 238 kB / 474.5 MB, free: 11.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001961/0.3546, allocations: 118.3 kB / 474.6 MB, free: 10.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3547, allocations: 334 kB / 474.9 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004594/0.3552, allocations: 217.5 kB / 475.2 MB, free: 10.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00057/0.3558, allocations: 364.4 kB / 475.5 MB, free: 9.992 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001075/0.3568, allocations: 0.6164 MB / 476.1 MB, free: 9.324 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.3569, allocations: 3.938 kB / 476.1 MB, free: 9.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001791/0.3586, allocations: 0.964 MB / 477.1 MB, free: 8.344 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.3587, allocations: 4 kB / 477.1 MB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/0.3588, allocations: 68 kB / 477.2 MB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005087/0.3593, allocations: 177.1 kB / 477.3 MB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004388/0.3597, allocations: 107.8 kB / 477.4 MB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003576/0.3633, allocations: 2.661 MB / 480.1 MB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005282/0.3638, allocations: 32.03 kB / 480.1 MB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.744e-05/0.3639, allocations: 32 kB / 480.2 MB, free: 5.16 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 7 (v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(4,17,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004856/0.3644, allocations: 273.6 kB / 480.4 MB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002194/0.3646, allocations: 190.8 kB / 480.6 MB, free: 4.695 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002033/0.3666, allocations: 0.9735 MB / 481.6 MB, free: 3.699 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.3666, allocations: 8 kB / 481.6 MB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.3666, allocations: 4 kB / 481.6 MB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.3666, allocations: 0 / 481.6 MB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.3678, allocations: 0.866 MB / 482.5 MB, free: 2.781 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001005/0.3679, allocations: 63.98 kB / 482.5 MB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003274/0.3683, allocations: 63.89 kB / 482.6 MB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004807/0.3688, allocations: 179.1 kB / 482.8 MB, free: 2.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-05/0.3688, allocations: 19.94 kB / 482.8 MB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003459/0.3723, allocations: 2.659 MB / 485.5 MB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3723, allocations: 0 / 485.5 MB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002238/0.3745, allocations: 1.18 MB / 486.6 MB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000431/0.3749, allocations: 190.8 kB / 486.8 MB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001427/0.3751, allocations: 19.94 kB / 486.8 MB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003504/0.3754, allocations: 19.98 kB / 486.9 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.3756, allocations: 52.28 kB / 486.9 MB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.253e-05/0.3756, allocations: 27.98 kB / 486.9 MB, free: 14.19 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00121/0.3768, allocations: 0.8535 MB / 487.8 MB, free: 13.35 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3768, allocations: 0 / 487.8 MB, free: 13.35 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001047/0.3779, allocations: 391.2 kB / 488.2 MB, free: 12.96 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vbx,T2.vbe,T2.vbx) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 3 * 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 {(4,17,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003287/0.3812, allocations: 2.085 MB / 490.3 MB, free: 10.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001881/0.383, allocations: 0.878 MB / 491.1 MB, free: 9.941 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.383, allocations: 0.6875 kB / 491.1 MB, free: 9.941 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.3842, allocations: 0.6158 MB / 491.8 MB, free: 9.297 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009885/0.3852, allocations: 206.1 kB / 492 MB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01509/0.4003, allocations: 9.45 MB / 0.4897 GB, free: 15.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008998/0.4012, allocations: 1.174 MB / 0.4908 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005321/0.4017, allocations: 187.2 kB / 0.491 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006868/0.4024, allocations: 0.5656 MB / 0.4915 GB, free: 13.39 MB / 414.1 MB Notification: Performance of SimCode: time 1.333e-06/0.4024, allocations: 0 / 0.4915 GB, free: 13.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08259/0.485, allocations: 30.44 MB / 0.5213 GB, free: 15.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.1/15.58, allocations: 4 kB / 0.5213 GB, free: 15.18 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --stepSize=4.998e-06 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.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: 18.610601000953466]