Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator") translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001257/0.001257, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00115/0.00115, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 227.4 MB / 246.9 MB, free: 8.992 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 67.94 kB / 306.9 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09711/0.09828, allocations: 50.54 MB / 357.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007536/0.1059, allocations: 7.487 MB / 364.9 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1728/0.2787, allocations: 10.96 MB / 375.9 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001394/0.2801, allocations: 42.19 kB / 375.9 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001992/0.2822, allocations: 0.6353 MB / 376.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003788/0.286, allocations: 0.9691 MB / 377.5 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002351/0.2884, allocations: 496.8 kB / 378 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004669/0.2931, allocations: 2.48 MB / 380.5 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005183/0.2936, allocations: 263.8 kB / 380.8 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000871/0.2945, allocations: 463.8 kB / 381.2 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005812/0.2951, allocations: 0.5254 MB / 381.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001052/0.2952, allocations: 36.44 kB / 381.8 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002108/0.2973, allocations: 0.753 MB / 382.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001866/0.2975, allocations: 172.5 kB / 382.7 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00066/0.2982, allocations: 0.6571 MB / 383.3 MB, free: 6.867 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001656/0.2999, allocations: 1.43 MB / 384.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2999, allocations: 0 / 384.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.2999, allocations: 1.375 kB / 384.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.405e-05/0.2999, allocations: 0 / 384.8 MB, free: 6.441 MB / 302.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.003378/0.3033, allocations: 1.979 MB / 386.8 MB, free: 5.105 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.3034, allocations: 8.719 kB / 386.8 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003142/0.3037, allocations: 198.6 kB / 387 MB, free: 5.008 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001968/0.3057, allocations: 1.34 MB / 388.3 MB, free: 4.316 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.3057, allocations: 39.28 kB / 388.3 MB, free: 4.297 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.299e-05/0.3058, allocations: 49.22 kB / 388.4 MB, free: 4.277 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000921/0.3067, allocations: 0.5112 MB / 388.9 MB, free: 4.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.3068, allocations: 0 / 388.9 MB, free: 4.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.963e-05/0.3068, allocations: 14.91 kB / 388.9 MB, free: 4.059 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.742e-05/0.3068, allocations: 18.69 kB / 388.9 MB, free: 4.055 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008788/0.3077, allocations: 474.7 kB / 389.4 MB, free: 3.898 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003092/0.3108, allocations: 2.104 MB / 391.5 MB, free: 2.707 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009344/0.3118, allocations: 0.6995 MB / 392.2 MB, free: 2.262 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006749/0.3125, allocations: 0.5315 MB / 392.7 MB, free: 1.996 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006197/0.3187, allocations: 4.903 MB / 397.6 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006367/0.3194, allocations: 316.3 kB / 397.9 MB, free: 13.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.896e-06/0.3194, allocations: 0 / 397.9 MB, free: 13.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=65): time 0.005474/0.3249, allocations: 2.406 MB / 400.3 MB, free: 11.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.348e-05/0.3249, allocations: 65.23 kB / 400.4 MB, free: 11.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0016/0.3265, allocations: 1.285 MB / 401.7 MB, free: 11.05 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.424e-05/0.3266, allocations: 36.55 kB / 401.7 MB, free: 11.01 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000563/0.3272, allocations: 0.6976 MB / 402.4 MB, free: 10.39 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001952/0.3274, allocations: 220.4 kB / 402.6 MB, free: 10.2 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000188/0.3276, allocations: 127.8 kB / 402.8 MB, free: 10.13 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.3277, allocations: 334.7 kB / 403.1 MB, free: 9.801 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004333/0.3282, allocations: 217.5 kB / 403.3 MB, free: 9.699 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004886/0.3287, allocations: 359.6 kB / 403.7 MB, free: 9.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000941/0.3296, allocations: 0.6119 MB / 404.3 MB, free: 9.004 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.3296, allocations: 2.469 kB / 404.3 MB, free: 9.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001729/0.3314, allocations: 0.9628 MB / 405.2 MB, free: 8.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.3314, allocations: 10.58 kB / 405.2 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-05/0.3315, allocations: 65.28 kB / 405.3 MB, free: 8.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004861/0.332, allocations: 188 kB / 405.5 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004326/0.3324, allocations: 103.9 kB / 405.6 MB, free: 8.195 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002975/0.3354, allocations: 2.516 MB / 408.1 MB, free: 5.551 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007653/0.3362, allocations: 28.02 kB / 408.1 MB, free: 5.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.795e-05/0.3363, allocations: 36 kB / 408.2 MB, free: 5.488 MB / 318.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.0004976/0.3368, allocations: 277.5 kB / 408.4 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002322/0.337, allocations: 181.9 kB / 408.6 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001982/0.339, allocations: 0.9757 MB / 409.6 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.3391, allocations: 8 kB / 409.6 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.3391, allocations: 0 / 409.6 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3391, allocations: 7.984 kB / 409.6 MB, free: 4.027 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/0.3404, allocations: 0.912 MB / 410.5 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.528e-05/0.3404, allocations: 56 kB / 410.6 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003146/0.3408, allocations: 67.89 kB / 410.6 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004505/0.3412, allocations: 172.7 kB / 410.8 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.861e-05/0.3413, allocations: 23.98 kB / 410.8 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003016/0.3443, allocations: 2.515 MB / 413.4 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.3443, allocations: 0 / 413.4 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00231/0.3467, allocations: 1.184 MB / 414.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005827/0.3473, allocations: 259 kB / 414.8 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000318/0.3476, allocations: 9.812 kB / 414.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004994/0.3481, allocations: 19.98 kB / 414.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/0.3483, allocations: 56.3 kB / 414.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.127e-05/0.3483, allocations: 20 kB / 414.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001269/0.3496, allocations: 0.8574 MB / 415.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3496, allocations: 0 / 415.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001183/0.3508, allocations: 387.8 kB / 416.1 MB, free: 13.3 MB / 334.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.0007682/0.3516, allocations: 454.7 kB / 416.6 MB, free: 12.9 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001763/0.3533, allocations: 0.9096 MB / 417.5 MB, free: 11.97 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3534, allocations: 0 / 417.5 MB, free: 11.97 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.3544, allocations: 0.6583 MB / 418.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001252/0.3557, allocations: 204.9 kB / 418.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004169/0.3598, allocations: 2.909 MB / 421.2 MB, free: 8.148 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007701/0.3606, allocations: 1.174 MB / 422.4 MB, free: 6.941 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.3608, allocations: 87.44 kB / 422.5 MB, free: 6.855 MB / 334.1 MB Notification: Performance of SimCode: time 1.713e-06/0.3609, allocations: 4 kB / 422.5 MB, free: 6.852 MB / 334.1 MB Notification: Performance of Templates: time 0.03209/0.393, allocations: 24.14 MB / 446.7 MB, free: 14.71 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches