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.001256/0.001256, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001433/0.001433, allocations: 203.6 kB / 23.73 MB, free: 4.379 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.401/1.401, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001516/0.001516, allocations: 51.94 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2447, allocations: 53.36 MB / 431.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007758/0.2524, allocations: 6.489 MB / 437.6 MB, free: 100 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01267/0.2651, allocations: 9.316 MB / 446.9 MB, free: 6.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001121/0.2662, allocations: 122.6 kB / 447 MB, free: 6.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001906/0.2681, allocations: 0.648 MB / 447.6 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003709/0.2718, allocations: 1.206 MB / 448.8 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001953/0.2738, allocations: 0.6759 MB / 449.5 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004354/0.2781, allocations: 2.578 MB / 452.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003817/0.2785, allocations: 176.4 kB / 452.3 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007603/0.2793, allocations: 0.5171 MB / 452.8 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006967/0.28, allocations: 0.5356 MB / 453.3 MB, free: 244 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.496e-05/0.2801, allocations: 56 kB / 453.4 MB, free: 188 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001552/0.2816, allocations: 0.7221 MB / 454.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001767/0.2818, allocations: 186.8 kB / 454.3 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005357/0.2823, allocations: 0.5007 MB / 454.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002403/0.2847, allocations: 1.98 MB / 456.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.2847, allocations: 0 / 456.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2847, allocations: 0 / 456.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.53e-05/0.2848, allocations: 0 / 456.8 MB, free: 12.79 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.003194/0.288, allocations: 1.963 MB / 458.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.288, allocations: 12.03 kB / 458.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001132/0.2881, allocations: 98.69 kB / 458.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002377/0.2884, allocations: 207.7 kB / 459 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002055/0.2904, allocations: 1.24 MB / 460.3 MB, free: 9.164 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.641e-05/0.2904, allocations: 40.92 kB / 460.3 MB, free: 9.121 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.982e-05/0.2905, allocations: 47.95 kB / 460.4 MB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009882/0.2915, allocations: 0.5119 MB / 460.9 MB, free: 8.559 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.2916, allocations: 0 / 460.9 MB, free: 8.559 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.196e-05/0.2916, allocations: 16 kB / 460.9 MB, free: 8.543 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.054e-05/0.2916, allocations: 23.98 kB / 460.9 MB, free: 8.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009277/0.2926, allocations: 472.1 kB / 461.4 MB, free: 8.062 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003161/0.2957, allocations: 1.941 MB / 463.3 MB, free: 6.043 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009252/0.2966, allocations: 0.5086 MB / 463.8 MB, free: 5.523 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007296/0.2974, allocations: 470 kB / 464.3 MB, free: 5.066 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005262/0.3026, allocations: 2.272 MB / 466.6 MB, free: 2.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006659/0.3033, allocations: 313.5 kB / 466.9 MB, free: 2.449 MB / 366.1 MB Notification: Performance of pre-optimization done (n=61): time 2.715e-06/0.3033, allocations: 0 / 466.9 MB, free: 2.449 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005028/0.3083, allocations: 2.282 MB / 469.1 MB, free: 132 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/0.3084, allocations: 59.84 kB / 469.2 MB, free: 60 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001676/0.3101, allocations: 1.291 MB / 470.5 MB, free: 14.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.18e-05/0.3101, allocations: 37.7 kB / 470.5 MB, free: 14.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006717/0.3108, allocations: 0.7003 MB / 471.2 MB, free: 14.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002024/0.311, allocations: 233.9 kB / 471.5 MB, free: 13.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002161/0.3112, allocations: 126.3 kB / 471.6 MB, free: 13.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.3113, allocations: 326 kB / 471.9 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005596/0.3119, allocations: 225.5 kB / 472.1 MB, free: 13.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005717/0.3125, allocations: 356.5 kB / 472.5 MB, free: 12.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/0.3135, allocations: 0.6164 MB / 473.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.069e-05/0.3135, allocations: 7.938 kB / 473.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001814/0.3153, allocations: 0.964 MB / 474.1 MB, free: 11.06 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.3154, allocations: 8 kB / 474.1 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.93e-05/0.3155, allocations: 64 kB / 474.1 MB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005225/0.316, allocations: 185 kB / 474.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000439/0.3164, allocations: 107.8 kB / 474.4 MB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003378/0.3198, allocations: 2.633 MB / 477 MB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005195/0.3203, allocations: 24.03 kB / 477.1 MB, free: 7.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.54e-05/0.3204, allocations: 32 kB / 477.1 MB, free: 7.902 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.000458/0.3208, allocations: 269.7 kB / 477.4 MB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/0.321, allocations: 186.9 kB / 477.6 MB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001959/0.323, allocations: 0.9774 MB / 478.5 MB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.323, allocations: 8 kB / 478.5 MB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.323, allocations: 7.938 kB / 478.5 MB, free: 6.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.323, allocations: 3.984 kB / 478.5 MB, free: 6.426 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.3241, allocations: 0.7998 MB / 479.3 MB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.564e-05/0.3242, allocations: 63.98 kB / 479.4 MB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000313/0.3245, allocations: 63.95 kB / 479.5 MB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004562/0.3249, allocations: 166.2 kB / 479.6 MB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.174e-05/0.325, allocations: 27.92 kB / 479.7 MB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003218/0.3282, allocations: 2.63 MB / 482.3 MB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.3282, allocations: 4.031 kB / 482.3 MB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002126/0.3303, allocations: 1.184 MB / 483.5 MB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004418/0.3308, allocations: 182.8 kB / 483.7 MB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001503/0.3309, allocations: 11.94 kB / 483.7 MB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003691/0.3313, allocations: 19.98 kB / 483.7 MB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/0.3314, allocations: 56.34 kB / 483.7 MB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.319e-05/0.3315, allocations: 20 kB / 483.8 MB, free: 1.043 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001118/0.3326, allocations: 0.8535 MB / 484.6 MB, free: 204 kB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3326, allocations: 0 / 484.6 MB, free: 204 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001008/0.3336, allocations: 395.2 kB / 485 MB, free: 15.81 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.003128/0.3367, allocations: 2.1 MB / 487.1 MB, free: 13.67 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001732/0.3385, allocations: 0.8708 MB / 488 MB, free: 12.78 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3385, allocations: 0 / 488 MB, free: 12.78 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.3395, allocations: 0.612 MB / 488.6 MB, free: 12.14 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008908/0.3404, allocations: 210.1 kB / 488.8 MB, free: 11.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01356/0.354, allocations: 9.431 MB / 498.2 MB, free: 2.199 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006004/0.3546, allocations: 0.5876 MB / 498.8 MB, free: 1.574 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005112/0.3551, allocations: 187.2 kB / 499 MB, free: 1.387 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000632/0.3557, allocations: 0.5657 MB / 499.6 MB, free: 0.8203 MB / 398.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3557, allocations: 0 / 499.6 MB, free: 0.8203 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07372/0.4295, allocations: 31.42 MB / 0.5185 GB, free: 1.672 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/12.76, allocations: 1.5 kB / 0.5185 GB, free: 1.672 MB / 430.1 MB " [Timeout remaining time 647] (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: 15.573139993997756]