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.001763/0.001763, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002133/0.002133, allocations: 212.2 kB / 24.48 MB, free: 3.977 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.449/1.449, allocations: 230.6 MB / 258.2 MB, free: 7.785 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.001622/0.001622, allocations: 51.92 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.2285, allocations: 53.37 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008002/0.2365, allocations: 6.479 MB / 438.8 MB, free: 216 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01261/0.2491, allocations: 9.324 MB / 448.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001048/0.2502, allocations: 126.6 kB / 448.2 MB, free: 6.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001749/0.2519, allocations: 0.6451 MB / 448.9 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003334/0.2553, allocations: 1.202 MB / 450.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001668/0.2569, allocations: 0.6799 MB / 450.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003715/0.2606, allocations: 2.567 MB / 453.3 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003462/0.261, allocations: 184.3 kB / 453.5 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006323/0.2616, allocations: 0.5171 MB / 454 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006036/0.2622, allocations: 0.5356 MB / 454.6 MB, free: 360 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.2623, allocations: 56 kB / 454.6 MB, free: 304 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001468/0.2638, allocations: 0.722 MB / 455.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001732/0.264, allocations: 182.8 kB / 455.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005044/0.2645, allocations: 0.5084 MB / 456 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002255/0.2667, allocations: 1.98 MB / 458 MB, free: 12.89 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.2667, allocations: 4 kB / 458 MB, free: 12.89 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2667, allocations: 0 / 458 MB, free: 12.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.429e-05/0.2667, allocations: 0 / 458 MB, free: 12.89 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.003039/0.2698, allocations: 1.967 MB / 460 MB, free: 10.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.2698, allocations: 12.03 kB / 460 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002454/0.2701, allocations: 207.7 kB / 460.2 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002146/0.2722, allocations: 1.24 MB / 461.4 MB, free: 9.371 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.984e-05/0.2723, allocations: 32.94 kB / 461.5 MB, free: 9.336 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.2724, allocations: 47.95 kB / 461.5 MB, free: 9.289 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.2734, allocations: 0.5158 MB / 462 MB, free: 8.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.2734, allocations: 4 kB / 462 MB, free: 8.766 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.347e-05/0.2734, allocations: 16 kB / 462.1 MB, free: 8.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.2735, allocations: 16 kB / 462.1 MB, free: 8.734 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009967/0.2745, allocations: 476 kB / 462.5 MB, free: 8.273 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003243/0.2777, allocations: 1.864 MB / 464.4 MB, free: 6.344 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/0.2787, allocations: 0.5067 MB / 464.9 MB, free: 5.824 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007981/0.2795, allocations: 469.3 kB / 465.4 MB, free: 5.367 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00531/0.2848, allocations: 2.276 MB / 467.6 MB, free: 3.066 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006451/0.2855, allocations: 313.5 kB / 468 MB, free: 2.746 MB / 366.1 MB Notification: Performance of pre-optimization done (n=61): time 2.785e-06/0.2855, allocations: 0 / 468 MB, free: 2.746 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005247/0.2907, allocations: 2.274 MB / 470.2 MB, free: 444 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.878e-05/0.2908, allocations: 59.84 kB / 470.3 MB, free: 372 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001664/0.2924, allocations: 1.291 MB / 471.6 MB, free: 15.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.165e-05/0.2925, allocations: 37.7 kB / 471.6 MB, free: 15.03 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006725/0.2931, allocations: 0.7002 MB / 472.3 MB, free: 14.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002022/0.2934, allocations: 226 kB / 472.5 MB, free: 14.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001957/0.2935, allocations: 126.3 kB / 472.7 MB, free: 13.97 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.2937, allocations: 334 kB / 473 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004654/0.2942, allocations: 217.6 kB / 473.2 MB, free: 13.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005841/0.2948, allocations: 360.4 kB / 473.5 MB, free: 13.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.2959, allocations: 0.6164 MB / 474.2 MB, free: 12.35 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.2959, allocations: 0 / 474.2 MB, free: 12.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001786/0.2977, allocations: 0.9677 MB / 475.1 MB, free: 11.37 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.2977, allocations: 8 kB / 475.1 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001091/0.2978, allocations: 71.98 kB / 475.2 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005112/0.2983, allocations: 183.1 kB / 475.4 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004501/0.2987, allocations: 107.8 kB / 475.5 MB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003506/0.3022, allocations: 2.605 MB / 478.1 MB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004785/0.3027, allocations: 27.97 kB / 478.1 MB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.986e-05/0.3028, allocations: 36 kB / 478.2 MB, free: 8.246 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.0004606/0.3033, allocations: 269.8 kB / 478.4 MB, free: 7.973 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002238/0.3035, allocations: 190.9 kB / 478.6 MB, free: 7.785 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002058/0.3055, allocations: 0.9734 MB / 479.6 MB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.3055, allocations: 4 kB / 479.6 MB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3056, allocations: 4 kB / 479.6 MB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.3056, allocations: 3.984 kB / 479.6 MB, free: 6.777 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.3066, allocations: 0.7296 MB / 480.3 MB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-05/0.3067, allocations: 59.98 kB / 480.4 MB, free: 5.961 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003503/0.307, allocations: 75.83 kB / 480.5 MB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004723/0.3075, allocations: 175.5 kB / 480.6 MB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.79e-05/0.3075, allocations: 15.98 kB / 480.6 MB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003458/0.311, allocations: 2.594 MB / 483.2 MB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.311, allocations: 0 / 483.2 MB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002311/0.3133, allocations: 1.181 MB / 484.4 MB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004271/0.3137, allocations: 190.8 kB / 484.6 MB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.3139, allocations: 12 kB / 484.6 MB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003771/0.3143, allocations: 23.97 kB / 484.6 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/0.3144, allocations: 52.2 kB / 484.7 MB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.407e-05/0.3144, allocations: 27.98 kB / 484.7 MB, free: 1.508 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001198/0.3156, allocations: 0.8612 MB / 485.6 MB, free: 0.6562 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3156, allocations: 0 / 485.6 MB, free: 0.6562 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000987/0.3166, allocations: 395.2 kB / 486 MB, free: 276 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.0008064/0.3174, allocations: 451.7 kB / 486.4 MB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001836/0.3193, allocations: 0.8748 MB / 487.3 MB, free: 14.92 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3193, allocations: 4.062 kB / 487.3 MB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001129/0.3204, allocations: 0.6157 MB / 487.9 MB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009074/0.3213, allocations: 218.1 kB / 488.1 MB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003937/0.3253, allocations: 2.454 MB / 490.6 MB, free: 11.56 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006264/0.3259, allocations: 0.5916 MB / 491.2 MB, free: 10.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004882/0.3264, allocations: 183.2 kB / 491.3 MB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001654/0.3265, allocations: 83.44 kB / 491.4 MB, free: 10.67 MB / 398.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3265, allocations: 0 / 491.4 MB, free: 10.67 MB / 398.1 MB Notification: Performance of Templates: time 0.03152/0.358, allocations: 16.57 MB / 0.4961 GB, free: 10.2 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 -s gbode -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/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: 5.281188716006]