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.0008943/0.0008944, allocations: 95.92 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009249/0.000925, allocations: 207.7 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002114/0.0002115, allocations: 8 kB / 306.6 MB, free: 1.664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08704/0.08727, allocations: 51.49 MB / 358.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.005259/0.09256, allocations: 6.113 MB / 364.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1569/0.2495, allocations: 9.412 MB / 373.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008532/0.2504, allocations: 36.75 kB / 373.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001658/0.2521, allocations: 0.5757 MB / 374.2 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003619/0.2557, allocations: 1.05 MB / 375.2 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001732/0.2575, allocations: 467.3 kB / 375.7 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004209/0.2617, allocations: 2.422 MB / 378.1 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003901/0.2621, allocations: 254.8 kB / 378.4 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007183/0.2628, allocations: 424.7 kB / 378.8 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004847/0.2633, allocations: 490.7 kB / 379.3 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.679e-05/0.2634, allocations: 29.66 kB / 379.3 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001881/0.2653, allocations: 0.7256 MB / 380 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001411/0.2654, allocations: 149.2 kB / 380.2 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002748/0.2657, allocations: 319.2 kB / 380.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001555/0.2673, allocations: 1.375 MB / 381.9 MB, free: 8.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.2673, allocations: 0 / 381.9 MB, free: 8.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2673, allocations: 0 / 381.9 MB, free: 8.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.179e-05/0.2673, allocations: 0 / 381.9 MB, free: 8.02 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.002595/0.2699, allocations: 1.771 MB / 383.6 MB, free: 6.918 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.27, allocations: 17.34 kB / 383.6 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000226/0.2702, allocations: 197.9 kB / 383.8 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001938/0.2722, allocations: 1.264 MB / 385.1 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.488e-05/0.2722, allocations: 32.73 kB / 385.1 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.144e-05/0.2723, allocations: 42.64 kB / 385.2 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.2733, allocations: 0.5216 MB / 385.7 MB, free: 6.371 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.2734, allocations: 0 / 385.7 MB, free: 6.371 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.126e-05/0.2734, allocations: 16.09 kB / 385.7 MB, free: 6.371 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.626e-05/0.2735, allocations: 19.16 kB / 385.7 MB, free: 6.371 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009673/0.2744, allocations: 496.9 kB / 386.2 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003516/0.278, allocations: 2.12 MB / 388.3 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009088/0.2789, allocations: 0.7286 MB / 389.1 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005305/0.2842, allocations: 4.933 MB / 394 MB, free: 1.527 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005426/0.2848, allocations: 328.2 kB / 394.3 MB, free: 1.402 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.445e-06/0.2848, allocations: 0 / 394.3 MB, free: 1.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004849/0.2896, allocations: 2.64 MB / 397 MB, free: 276 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/0.2897, allocations: 66.7 kB / 397 MB, free: 204 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001443/0.2911, allocations: 1.265 MB / 398.3 MB, free: 15.83 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.104e-05/0.2912, allocations: 35.14 kB / 398.3 MB, free: 15.8 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005261/0.2917, allocations: 0.6985 MB / 399 MB, free: 15.22 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/0.2919, allocations: 231.1 kB / 399.2 MB, free: 15.03 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.027e-05/0.2919, allocations: 10.03 kB / 399.3 MB, free: 15.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.292, allocations: 332.6 kB / 399.6 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004279/0.2925, allocations: 223.1 kB / 399.8 MB, free: 14.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004874/0.293, allocations: 368.2 kB / 400.2 MB, free: 14.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004647/0.2934, allocations: 268.2 kB / 400.4 MB, free: 14.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.2935, allocations: 2.031 kB / 400.4 MB, free: 14.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001591/0.2951, allocations: 0.984 MB / 401.4 MB, free: 13.68 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.2951, allocations: 12.42 kB / 401.4 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.918e-05/0.2952, allocations: 62.14 kB / 401.5 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000435/0.2956, allocations: 180.9 kB / 401.7 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004303/0.2961, allocations: 113.4 kB / 401.8 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002918/0.299, allocations: 2.562 MB / 404.3 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006703/0.2997, allocations: 40.52 kB / 404.4 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.214e-05/0.2997, allocations: 36.58 kB / 404.4 MB, free: 11.42 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 ($PRE.v.counter,v.counter,$whenCondition1,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005063/0.3003, allocations: 269.7 kB / 404.7 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001725/0.3004, allocations: 179.4 kB / 404.8 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002038/0.3025, allocations: 0.9974 MB / 405.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.3025, allocations: 11.98 kB / 405.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.3025, allocations: 8 kB / 405.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3025, allocations: 0 / 405.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/0.3037, allocations: 0.9131 MB / 406.8 MB, free: 9.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.569e-05/0.3038, allocations: 59.98 kB / 406.8 MB, free: 9.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003395/0.3041, allocations: 67.95 kB / 406.9 MB, free: 9.223 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004202/0.3045, allocations: 180.7 kB / 407.1 MB, free: 9.043 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.956e-05/0.3046, allocations: 23.98 kB / 407.1 MB, free: 9.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002944/0.3075, allocations: 2.568 MB / 409.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3076, allocations: 0 / 409.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002083/0.3096, allocations: 1.201 MB / 410.9 MB, free: 5.105 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004634/0.3101, allocations: 258.9 kB / 411.1 MB, free: 4.832 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001447/0.3103, allocations: 8 kB / 411.1 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003767/0.3107, allocations: 23.98 kB / 411.1 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/0.3108, allocations: 52.36 kB / 411.2 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.981e-05/0.3109, allocations: 28 kB / 411.2 MB, free: 4.723 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001155/0.312, allocations: 0.8379 MB / 412.1 MB, free: 3.895 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.433e-06/0.312, allocations: 0 / 412.1 MB, free: 3.895 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001205/0.3132, allocations: 385.5 kB / 412.4 MB, free: 3.52 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,81.2%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000706/0.314, allocations: 439.3 kB / 412.9 MB, free: 3.133 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001777/0.3157, allocations: 0.9368 MB / 413.8 MB, free: 2.168 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3158, allocations: 0 / 413.8 MB, free: 2.168 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.3169, allocations: 0.6569 MB / 414.5 MB, free: 1.492 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007669/0.3177, allocations: 195.7 kB / 414.7 MB, free: 1.305 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003526/0.3212, allocations: 2.78 MB / 417.4 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006555/0.3219, allocations: 1.205 MB / 418.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006023/0.3225, allocations: 187.1 kB / 418.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.3226, allocations: 79.44 kB / 418.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3226, allocations: 0 / 418.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of Templates: time 0.02328/0.3459, allocations: 12.87 MB / 431.8 MB, free: 188 kB / 334.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches