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.001921/0.001921, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.002411/0.002411, allocations: 209.6 kB / 23.73 MB, free: 4.41 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.528/1.528, allocations: 230.6 MB / 257.5 MB, free: 7.809 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: translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator") translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 51.92 kB / 378.2 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2477, allocations: 53.36 MB / 431.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008505/0.2562, allocations: 6.485 MB / 438.1 MB, free: 224 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01443/0.2706, allocations: 9.32 MB / 447.4 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001282/0.2719, allocations: 126.6 kB / 447.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002127/0.274, allocations: 0.6408 MB / 448.1 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004466/0.2785, allocations: 1.206 MB / 449.3 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002011/0.2805, allocations: 0.6759 MB / 450 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004231/0.2847, allocations: 2.582 MB / 452.6 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004075/0.2852, allocations: 164.4 kB / 452.8 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007933/0.2859, allocations: 0.521 MB / 453.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008081/0.2868, allocations: 0.4966 MB / 453.8 MB, free: 416 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001518/0.2869, allocations: 55.98 kB / 453.8 MB, free: 360 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001706/0.2886, allocations: 0.6869 MB / 454.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001924/0.2888, allocations: 190.8 kB / 454.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006056/0.2894, allocations: 0.4968 MB / 455.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002549/0.292, allocations: 1.976 MB / 457.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.292, allocations: 4 kB / 457.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.292, allocations: 0 / 457.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.166e-05/0.292, allocations: 0 / 457.2 MB, free: 12.99 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.003069/0.2951, allocations: 1.967 MB / 459.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.2951, allocations: 11.97 kB / 459.2 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002445/0.2953, allocations: 211.7 kB / 459.4 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002128/0.2975, allocations: 1.248 MB / 460.6 MB, free: 9.457 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.2975, allocations: 36.94 kB / 460.7 MB, free: 9.418 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.89e-05/0.2976, allocations: 47.95 kB / 460.7 MB, free: 9.371 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009605/0.2986, allocations: 0.5119 MB / 461.2 MB, free: 8.852 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.2986, allocations: 3.984 kB / 461.2 MB, free: 8.848 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.028e-05/0.2986, allocations: 20 kB / 461.2 MB, free: 8.828 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.094e-05/0.2987, allocations: 19.98 kB / 461.3 MB, free: 8.809 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009511/0.2996, allocations: 476.1 kB / 461.7 MB, free: 8.348 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003093/0.3027, allocations: 1.86 MB / 463.6 MB, free: 6.422 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009635/0.3037, allocations: 0.5067 MB / 464.1 MB, free: 5.902 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007602/0.3044, allocations: 469.3 kB / 464.5 MB, free: 5.445 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005241/0.3097, allocations: 2.272 MB / 466.8 MB, free: 3.148 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006417/0.3103, allocations: 313.5 kB / 467.1 MB, free: 2.828 MB / 366.1 MB Notification: Performance of pre-optimization done (n=61): time 3.747e-06/0.3103, allocations: 0 / 467.1 MB, free: 2.828 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005112/0.3154, allocations: 2.274 MB / 469.4 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/0.3155, allocations: 63.78 kB / 469.5 MB, free: 452 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001669/0.3171, allocations: 1.291 MB / 470.7 MB, free: 15.15 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.968e-05/0.3172, allocations: 37.7 kB / 470.8 MB, free: 15.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000661/0.3179, allocations: 0.6963 MB / 471.5 MB, free: 14.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001997/0.318, allocations: 234 kB / 471.7 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001861/0.3182, allocations: 122.3 kB / 471.8 MB, free: 14.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3184, allocations: 334 kB / 472.2 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004621/0.3188, allocations: 217.5 kB / 472.4 MB, free: 13.51 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005771/0.3194, allocations: 360.5 kB / 472.7 MB, free: 13.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0011/0.3205, allocations: 0.6125 MB / 473.3 MB, free: 12.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.3205, allocations: 4 kB / 473.3 MB, free: 12.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001813/0.3223, allocations: 0.9757 MB / 474.3 MB, free: 11.44 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.3224, allocations: 8 kB / 474.3 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001017/0.3225, allocations: 67.98 kB / 474.4 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005234/0.323, allocations: 181 kB / 474.6 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000461/0.3235, allocations: 111.8 kB / 474.7 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003531/0.327, allocations: 2.6 MB / 477.3 MB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005414/0.3275, allocations: 27.97 kB / 477.3 MB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.426e-05/0.3276, allocations: 32 kB / 477.3 MB, free: 8.324 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.0004744/0.3281, allocations: 271 kB / 477.6 MB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002189/0.3283, allocations: 186.9 kB / 477.8 MB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002038/0.3303, allocations: 0.9735 MB / 478.8 MB, free: 6.871 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.3303, allocations: 8 kB / 478.8 MB, free: 6.863 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.3303, allocations: 4 kB / 478.8 MB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3303, allocations: 11.86 kB / 478.8 MB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001022/0.3314, allocations: 0.7179 MB / 479.5 MB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.512e-05/0.3315, allocations: 71.98 kB / 479.6 MB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003429/0.3318, allocations: 63.83 kB / 479.6 MB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004572/0.3323, allocations: 175 kB / 479.8 MB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.222e-05/0.3323, allocations: 19.98 kB / 479.8 MB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003525/0.3358, allocations: 2.602 MB / 482.4 MB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3358, allocations: 0 / 482.4 MB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00234/0.3382, allocations: 1.177 MB / 483.6 MB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005255/0.3387, allocations: 191 kB / 483.8 MB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001923/0.3389, allocations: 12 kB / 483.8 MB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004213/0.3393, allocations: 19.97 kB / 483.8 MB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.3395, allocations: 60.23 kB / 483.9 MB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-05/0.3395, allocations: 24 kB / 483.9 MB, free: 1.582 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001316/0.3408, allocations: 0.8573 MB / 484.8 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3408, allocations: 0 / 484.8 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001092/0.3419, allocations: 391.2 kB / 485.1 MB, free: 360 kB / 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 (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.0008628/0.3428, allocations: 463.4 kB / 485.6 MB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001916/0.3447, allocations: 0.8745 MB / 486.5 MB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3447, allocations: 0 / 486.5 MB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.3459, allocations: 0.6122 MB / 487.1 MB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.3469, allocations: 210.2 kB / 487.3 MB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004433/0.3514, allocations: 2.458 MB / 489.7 MB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007893/0.3522, allocations: 0.5916 MB / 490.3 MB, free: 11.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005632/0.3527, allocations: 183.2 kB / 490.5 MB, free: 10.83 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001619/0.3529, allocations: 83.42 kB / 490.6 MB, free: 10.75 MB / 398.1 MB Notification: Performance of SimCode: time 1.323e-06/0.3529, allocations: 0 / 490.6 MB, free: 10.75 MB / 398.1 MB Notification: Performance of Templates: time 0.03502/0.3879, allocations: 16.4 MB / 0.4951 GB, free: 10.46 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins/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: 5.094385288655758]