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.00128/0.00128, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001351/0.001351, allocations: 202.2 kB / 24.52 MB, free: 4.156 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.35/1.35, allocations: 230.6 MB / 258.3 MB, free: 8.023 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 39.94 kB / 378.5 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2382, allocations: 53.38 MB / 431.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.00826/0.2465, allocations: 7.551 MB / 439.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01278/0.2592, allocations: 10.79 MB / 450.3 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001229/0.2605, allocations: 122.6 kB / 450.4 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001722/0.2622, allocations: 0.7129 MB / 451.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003226/0.2654, allocations: 1.202 MB / 452.3 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001662/0.2671, allocations: 0.6762 MB / 453 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003744/0.2708, allocations: 2.582 MB / 455.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003451/0.2712, allocations: 192.3 kB / 455.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000634/0.2718, allocations: 0.5016 MB / 456.2 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006413/0.2724, allocations: 0.5356 MB / 456.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.855e-05/0.2725, allocations: 55.94 kB / 456.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001568/0.2741, allocations: 0.7766 MB / 457.6 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001707/0.2743, allocations: 182.8 kB / 457.8 MB, free: 12.85 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005988/0.2749, allocations: 0.6754 MB / 458.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002319/0.2772, allocations: 1.96 MB / 460.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2772, allocations: 0 / 460.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2772, allocations: 0 / 460.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.444e-05/0.2772, allocations: 3.984 kB / 460.4 MB, free: 10.2 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.002941/0.2802, allocations: 1.971 MB / 462.4 MB, free: 8.184 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.2802, allocations: 8.031 kB / 462.4 MB, free: 8.176 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.579e-05/0.2802, allocations: 13.19 kB / 462.4 MB, free: 8.164 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.566e-05/0.2803, allocations: 86.7 kB / 462.5 MB, free: 8.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000222/0.2805, allocations: 207.7 kB / 462.7 MB, free: 7.867 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001894/0.2824, allocations: 1.247 MB / 464 MB, free: 6.559 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.4e-05/0.2825, allocations: 36.94 kB / 464 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.986e-05/0.2826, allocations: 44 kB / 464 MB, free: 6.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009332/0.2835, allocations: 0.5158 MB / 464.6 MB, free: 5.961 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.2835, allocations: 0 / 464.6 MB, free: 5.961 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.478e-05/0.2836, allocations: 16 kB / 464.6 MB, free: 5.945 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.745e-05/0.2836, allocations: 19.94 kB / 464.6 MB, free: 5.926 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009321/0.2845, allocations: 484.1 kB / 465.1 MB, free: 5.453 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003138/0.2876, allocations: 2.05 MB / 467.1 MB, free: 3.328 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009278/0.2886, allocations: 0.4988 MB / 467.6 MB, free: 2.816 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007677/0.2893, allocations: 477.3 kB / 468.1 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005018/0.2944, allocations: 2.334 MB / 470.4 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005995/0.295, allocations: 313.6 kB / 470.7 MB, free: 15.67 MB / 382.1 MB Notification: Performance of pre-optimization done (n=61): time 2.255e-06/0.295, allocations: 0 / 470.7 MB, free: 15.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=65): time 0.004948/0.2999, allocations: 2.27 MB / 473 MB, free: 13.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/0.3, allocations: 63.84 kB / 473 MB, free: 13.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001659/0.3016, allocations: 1.287 MB / 474.3 MB, free: 12 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.592e-05/0.3017, allocations: 37.7 kB / 474.4 MB, free: 11.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006536/0.3023, allocations: 0.7079 MB / 475.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002108/0.3026, allocations: 234 kB / 475.3 MB, free: 11.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.3027, allocations: 122.3 kB / 475.4 MB, free: 10.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.3029, allocations: 330 kB / 475.7 MB, free: 10.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004646/0.3034, allocations: 221.5 kB / 476 MB, free: 10.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005497/0.3039, allocations: 360.5 kB / 476.3 MB, free: 9.938 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.3049, allocations: 0.6163 MB / 476.9 MB, free: 9.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.305, allocations: 4 kB / 476.9 MB, free: 9.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001757/0.3067, allocations: 0.9604 MB / 477.9 MB, free: 8.293 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.3067, allocations: 12.03 kB / 477.9 MB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.6e-05/0.3068, allocations: 64 kB / 478 MB, free: 8.219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000499/0.3073, allocations: 186.4 kB / 478.2 MB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004386/0.3078, allocations: 107.9 kB / 478.3 MB, free: 7.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003363/0.3111, allocations: 2.66 MB / 480.9 MB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005141/0.3116, allocations: 24.03 kB / 480.9 MB, free: 5.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-05/0.3117, allocations: 28.09 kB / 481 MB, free: 5.109 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.0004646/0.3122, allocations: 285.6 kB / 481.2 MB, free: 4.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002084/0.3124, allocations: 190.8 kB / 481.4 MB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001941/0.3143, allocations: 0.9618 MB / 482.4 MB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.3143, allocations: 4 kB / 482.4 MB, free: 3.648 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3143, allocations: 4 kB / 482.4 MB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.3143, allocations: 4 kB / 482.4 MB, free: 3.641 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001092/0.3154, allocations: 0.8699 MB / 483.3 MB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.457e-05/0.3155, allocations: 59.98 kB / 483.3 MB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003166/0.3158, allocations: 75.83 kB / 483.4 MB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000442/0.3163, allocations: 176.6 kB / 483.6 MB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.735e-05/0.3163, allocations: 20 kB / 483.6 MB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003213/0.3195, allocations: 2.648 MB / 486.3 MB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.3195, allocations: 0 / 486.3 MB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00214/0.3217, allocations: 1.184 MB / 487.4 MB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003781/0.3221, allocations: 186.8 kB / 487.6 MB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/0.3222, allocations: 12 kB / 487.6 MB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003579/0.3225, allocations: 19.98 kB / 487.7 MB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.3227, allocations: 56.34 kB / 487.7 MB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.207e-05/0.3227, allocations: 23.98 kB / 487.7 MB, free: 14.15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001146/0.3239, allocations: 0.8496 MB / 488.6 MB, free: 13.31 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3239, allocations: 0 / 488.6 MB, free: 13.31 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009561/0.3248, allocations: 395.2 kB / 489 MB, free: 12.92 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.003054/0.3279, allocations: 2.093 MB / 491.1 MB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001785/0.3297, allocations: 0.8825 MB / 491.9 MB, free: 9.887 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3297, allocations: 0 / 491.9 MB, free: 9.887 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001087/0.3308, allocations: 0.612 MB / 492.6 MB, free: 9.246 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009578/0.3317, allocations: 214.1 kB / 492.8 MB, free: 9.035 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01383/0.3456, allocations: 9.442 MB / 0.4904 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007817/0.3463, allocations: 1.17 MB / 0.4916 GB, free: 14.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004981/0.3468, allocations: 187.2 kB / 0.4918 GB, free: 13.9 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006485/0.3475, allocations: 0.5696 MB / 0.4923 GB, free: 13.33 MB / 414.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3475, allocations: 0 / 0.4923 GB, free: 13.33 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06874/0.4162, allocations: 30.46 MB / 0.5221 GB, free: 15.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.22/14.64, allocations: 11.66 kB / 0.5221 GB, free: 15.11 MB / 446.1 MB " [Timeout remaining time 645] (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: 17.906414658005815]