Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.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.001702/0.001702, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.002007/0.002007, allocations: 190.7 kB / 24.49 MB, free: 3.941 MB / 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.344/1.344, allocations: 225.7 MB / 253.3 MB, free: 12.82 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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 47.92 kB / 371.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.2778, allocations: 52.18 MB / 423.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.00779/0.2856, allocations: 6.464 MB / 429.8 MB, free: 8.051 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01309/0.2987, allocations: 9.285 MB / 439.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001268/0.3, allocations: 122.6 kB / 439.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001901/0.3019, allocations: 0.6406 MB / 439.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004093/0.306, allocations: 1.206 MB / 441.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002099/0.3081, allocations: 0.6682 MB / 441.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004007/0.3121, allocations: 2.563 MB / 444.3 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003824/0.3125, allocations: 176.4 kB / 444.5 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007274/0.3132, allocations: 0.5132 MB / 445 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006499/0.3138, allocations: 0.5317 MB / 445.5 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.891e-05/0.3139, allocations: 56 kB / 445.6 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00156/0.3155, allocations: 0.7259 MB / 446.3 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001727/0.3157, allocations: 190.8 kB / 446.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005107/0.3162, allocations: 0.5007 MB / 447 MB, free: 6.785 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002162/0.3183, allocations: 1.968 MB / 448.9 MB, free: 4.809 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3183, allocations: 3.938 kB / 448.9 MB, free: 4.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3183, allocations: 0 / 448.9 MB, free: 4.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.3184, allocations: 0 / 448.9 MB, free: 4.805 MB / 350.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.002781/0.3211, allocations: 1.982 MB / 450.9 MB, free: 2.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3212, allocations: 8.031 kB / 450.9 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.718e-05/0.3212, allocations: 17.19 kB / 451 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.785e-05/0.3213, allocations: 90.69 kB / 451 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002341/0.3215, allocations: 203.7 kB / 451.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001897/0.3234, allocations: 1.247 MB / 452.5 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/0.3235, allocations: 33 kB / 452.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.969e-05/0.3236, allocations: 47.94 kB / 452.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009529/0.3245, allocations: 0.508 MB / 453.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.3245, allocations: 0 / 453.1 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.512e-05/0.3246, allocations: 16 kB / 453.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.329e-05/0.3246, allocations: 23.97 kB / 453.1 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00093/0.3255, allocations: 484 kB / 453.6 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003119/0.3287, allocations: 1.937 MB / 455.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000961/0.3296, allocations: 0.5065 MB / 456 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000721/0.3303, allocations: 465.5 kB / 456.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006098/0.3364, allocations: 2.537 MB / 459 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005602/0.337, allocations: 298.1 kB / 459.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 2.495e-06/0.337, allocations: 0 / 459.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=59): time 0.003567/0.3406, allocations: 1.904 MB / 461.2 MB, free: 8.262 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.776e-05/0.3406, allocations: 59.84 kB / 461.3 MB, free: 8.191 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00153/0.3421, allocations: 1.3 MB / 462.6 MB, free: 6.895 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.576e-05/0.3422, allocations: 41.62 kB / 462.6 MB, free: 6.848 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006394/0.3428, allocations: 0.7118 MB / 463.3 MB, free: 6.129 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000178/0.343, allocations: 214.2 kB / 463.5 MB, free: 5.918 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001813/0.3432, allocations: 126.3 kB / 463.7 MB, free: 5.789 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.3433, allocations: 326 kB / 464 MB, free: 5.465 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000414/0.3438, allocations: 205.5 kB / 464.2 MB, free: 5.262 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000548/0.3443, allocations: 361.9 kB / 464.5 MB, free: 4.848 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009786/0.3453, allocations: 0.5959 MB / 465.1 MB, free: 4.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3453, allocations: 0 / 465.1 MB, free: 4.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001563/0.3469, allocations: 0.9247 MB / 466.1 MB, free: 3.246 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.3469, allocations: 4 kB / 466.1 MB, free: 3.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.341e-05/0.347, allocations: 56 kB / 466.1 MB, free: 3.188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004275/0.3474, allocations: 165.2 kB / 466.3 MB, free: 3.023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004286/0.3478, allocations: 107.9 kB / 466.4 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002925/0.3507, allocations: 2.39 MB / 468.8 MB, free: 428 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000433/0.3512, allocations: 32.02 kB / 468.8 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.159e-05/0.3512, allocations: 36 kB / 468.8 MB, free: 360 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (57): * Single equations (assignments): 54 * 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,14,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003987/0.3516, allocations: 269.7 kB / 469.1 MB, free: 80 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002088/0.3518, allocations: 187.1 kB / 469.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001758/0.3536, allocations: 0.8892 MB / 470.2 MB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.3536, allocations: 8 kB / 470.2 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3536, allocations: 0 / 470.2 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3536, allocations: 0 / 470.2 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009795/0.3546, allocations: 0.7879 MB / 471 MB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.486e-05/0.3547, allocations: 59.98 kB / 471 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002897/0.355, allocations: 71.83 kB / 471.1 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003789/0.3553, allocations: 147.7 kB / 471.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.49e-05/0.3554, allocations: 23.98 kB / 471.3 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002725/0.3581, allocations: 2.356 MB / 473.6 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3581, allocations: 0 / 473.6 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001855/0.36, allocations: 1.065 MB / 474.7 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003129/0.3603, allocations: 174.9 kB / 474.9 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/0.3604, allocations: 16 kB / 474.9 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003299/0.3607, allocations: 16.17 kB / 474.9 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.3609, allocations: 48.36 kB / 474.9 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-05/0.3609, allocations: 31.97 kB / 475 MB, free: 10.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001093/0.362, allocations: 0.8578 MB / 475.8 MB, free: 9.168 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.362, allocations: 0 / 475.8 MB, free: 9.168 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009539/0.363, allocations: 379.2 kB / 476.2 MB, free: 8.797 MB / 382.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 (30): * Single equations (assignments): 24 * 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,14,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002837/0.3658, allocations: 1.976 MB / 478.2 MB, free: 6.789 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001594/0.3674, allocations: 0.8041 MB / 479 MB, free: 5.957 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3674, allocations: 0.9375 kB / 479 MB, free: 5.957 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009472/0.3683, allocations: 0.5472 MB / 479.5 MB, free: 5.383 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008482/0.3692, allocations: 212.6 kB / 479.7 MB, free: 5.176 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01279/0.382, allocations: 9.303 MB / 489 MB, free: 11.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000595/0.3826, allocations: 0.5874 MB / 489.6 MB, free: 10.92 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004733/0.383, allocations: 187.2 kB / 489.8 MB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006738/0.3837, allocations: 0.5696 MB / 490.4 MB, free: 10.16 MB / 398.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3837, allocations: 0 / 490.4 MB, free: 10.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06768/0.4514, allocations: 30.27 MB / 0.5084 GB, free: 12.19 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.16/14.61, allocations: 4.062 kB / 0.5084 GB, free: 12.18 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --stepSize=4.998e-06 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.907364291953854]