Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001595/0.001595, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001881/0.001881, allocations: 210.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 230.5 MB / 258.2 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 67.89 kB / 378.6 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2583, allocations: 53.41 MB / 432 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008704/0.267, allocations: 7.562 MB / 439.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01384/0.2809, allocations: 10.78 MB / 450.3 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00146/0.2824, allocations: 118.6 kB / 450.4 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002193/0.2845, allocations: 0.7211 MB / 451.1 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004187/0.2887, allocations: 1.198 MB / 452.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002082/0.2908, allocations: 0.6839 MB / 453 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004437/0.2953, allocations: 2.578 MB / 455.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004359/0.2957, allocations: 180.3 kB / 455.8 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008155/0.2965, allocations: 0.5093 MB / 456.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006802/0.2972, allocations: 0.5395 MB / 456.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.733e-05/0.2973, allocations: 56 kB / 456.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001778/0.2991, allocations: 0.7727 MB / 457.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001865/0.2992, allocations: 182.8 kB / 457.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006631/0.2999, allocations: 0.6754 MB / 458.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002811/0.3027, allocations: 1.96 MB / 460.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3027, allocations: 0 / 460.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.587e-06/0.3027, allocations: 4 kB / 460.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.786e-05/0.3028, allocations: 0 / 460.5 MB, free: 10.05 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.003294/0.3061, allocations: 1.967 MB / 462.4 MB, free: 8.039 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.3061, allocations: 12.03 kB / 462.5 MB, free: 8.027 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.13e-05/0.3061, allocations: 9.188 kB / 462.5 MB, free: 8.02 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.834e-05/0.3062, allocations: 90.7 kB / 462.5 MB, free: 7.922 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002508/0.3065, allocations: 207.7 kB / 462.8 MB, free: 7.719 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002095/0.3086, allocations: 1.24 MB / 464 MB, free: 6.418 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.262e-05/0.3086, allocations: 37 kB / 464 MB, free: 6.383 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-05/0.3087, allocations: 47.98 kB / 464.1 MB, free: 6.336 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009368/0.3096, allocations: 0.5157 MB / 464.6 MB, free: 5.816 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.3097, allocations: 0 / 464.6 MB, free: 5.816 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.068e-05/0.3097, allocations: 24 kB / 464.6 MB, free: 5.793 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.594e-05/0.3097, allocations: 15.98 kB / 464.6 MB, free: 5.777 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009302/0.3107, allocations: 476.1 kB / 465.1 MB, free: 5.309 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003268/0.3139, allocations: 2.054 MB / 467.1 MB, free: 3.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009578/0.3149, allocations: 0.5105 MB / 467.7 MB, free: 2.656 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007339/0.3156, allocations: 469.3 kB / 468.1 MB, free: 2.199 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005049/0.3207, allocations: 2.342 MB / 470.5 MB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006178/0.3213, allocations: 309.6 kB / 470.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=61): time 2.895e-06/0.3213, allocations: 0 / 470.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=65): time 0.004988/0.3263, allocations: 2.282 MB / 473 MB, free: 13.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/0.3263, allocations: 55.84 kB / 473.1 MB, free: 13.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001606/0.3279, allocations: 1.291 MB / 474.4 MB, free: 11.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.198e-05/0.328, allocations: 33.7 kB / 474.4 MB, free: 11.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000655/0.3286, allocations: 0.7041 MB / 475.1 MB, free: 11.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002095/0.3289, allocations: 234 kB / 475.4 MB, free: 10.86 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/0.329, allocations: 126.3 kB / 475.5 MB, free: 10.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.3292, allocations: 326 kB / 475.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004465/0.3296, allocations: 221.6 kB / 476 MB, free: 10.19 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005589/0.3302, allocations: 364.4 kB / 476.4 MB, free: 9.777 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.3313, allocations: 0.6163 MB / 477 MB, free: 9.109 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.3313, allocations: 4 kB / 477 MB, free: 9.105 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001749/0.333, allocations: 0.9603 MB / 477.9 MB, free: 8.133 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.333, allocations: 4 kB / 478 MB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001001/0.3331, allocations: 67.98 kB / 478 MB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005/0.3336, allocations: 188.2 kB / 478.2 MB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004398/0.3341, allocations: 103.9 kB / 478.3 MB, free: 7.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003452/0.3375, allocations: 2.662 MB / 481 MB, free: 5.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005025/0.338, allocations: 24.03 kB / 481 MB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.761e-05/0.3381, allocations: 36 kB / 481 MB, free: 4.945 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.0005104/0.3386, allocations: 274.3 kB / 481.3 MB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002314/0.3388, allocations: 190.8 kB / 481.5 MB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002026/0.3409, allocations: 0.9619 MB / 482.4 MB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.3409, allocations: 8 kB / 482.4 MB, free: 3.492 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.3409, allocations: 8 kB / 482.5 MB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.3409, allocations: 3.984 kB / 482.5 MB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001148/0.342, allocations: 0.8699 MB / 483.3 MB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.171e-05/0.3421, allocations: 60 kB / 483.4 MB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003187/0.3424, allocations: 67.88 kB / 483.5 MB, free: 2.445 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004535/0.3429, allocations: 172.6 kB / 483.6 MB, free: 2.273 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.995e-05/0.3429, allocations: 23.98 kB / 483.6 MB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003292/0.3462, allocations: 2.637 MB / 486.3 MB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.3462, allocations: 7.938 kB / 486.3 MB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002226/0.3485, allocations: 1.181 MB / 487.5 MB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004478/0.3489, allocations: 190.8 kB / 487.7 MB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001498/0.3491, allocations: 19.94 kB / 487.7 MB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003589/0.3494, allocations: 15.98 kB / 487.7 MB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.3496, allocations: 52.34 kB / 487.7 MB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.728e-05/0.3496, allocations: 28 kB / 487.8 MB, free: 14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00118/0.3508, allocations: 0.8535 MB / 488.6 MB, free: 13.15 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3508, allocations: 0 / 488.6 MB, free: 13.15 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001043/0.3519, allocations: 395.2 kB / 489 MB, free: 12.77 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.003215/0.3551, allocations: 2.097 MB / 491.1 MB, free: 10.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001783/0.3569, allocations: 0.8707 MB / 492 MB, free: 9.734 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3569, allocations: 0 / 492 MB, free: 9.734 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.3579, allocations: 0.616 MB / 492.6 MB, free: 9.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009609/0.3589, allocations: 215.1 kB / 492.8 MB, free: 8.883 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01381/0.3727, allocations: 9.442 MB / 0.4905 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008283/0.3735, allocations: 1.178 MB / 0.4916 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004929/0.374, allocations: 183.2 kB / 0.4918 GB, free: 13.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006393/0.3747, allocations: 0.5657 MB / 0.4924 GB, free: 13.18 MB / 414.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3747, allocations: 4 kB / 0.4924 GB, free: 13.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07698/0.4517, allocations: 30.45 MB / 0.5221 GB, free: 14.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.28/15.73, allocations: 10.7 kB / 0.5221 GB, free: 14.85 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --stepSize=4.998e-06 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 19.188627714000177]