Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 112.7 kB / 17.28 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001629/0.001629, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.376/1.376, allocations: 205.1 MB / 224 MB, free: 12.36 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001079/0.001079, allocations: 55.94 kB / 280.1 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07823/0.07932, allocations: 46.62 MB / 326.8 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.00739/0.08674, allocations: 7.319 MB / 334.1 MB, free: 13.45 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01099/0.09778, allocations: 10.27 MB / 344.4 MB, free: 3.129 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009482/0.09877, allocations: 39.69 kB / 344.4 MB, free: 3.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001705/0.1005, allocations: 0.6178 MB / 345 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003488/0.104, allocations: 0.9837 MB / 346 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001484/0.1055, allocations: 0.5771 MB / 346.6 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003467/0.109, allocations: 2.498 MB / 349.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003895/0.1094, allocations: 283.9 kB / 349.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004473/0.1099, allocations: 453.7 kB / 349.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004521/0.1103, allocations: 0.5239 MB / 350.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.187e-05/0.1104, allocations: 63.94 kB / 350.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001352/0.1118, allocations: 0.6948 MB / 351.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001474/0.1119, allocations: 186.8 kB / 351.3 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005501/0.1125, allocations: 0.6754 MB / 351.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001837/0.1143, allocations: 1.926 MB / 353.9 MB, free: 9.559 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1143, allocations: 0 / 353.9 MB, free: 9.559 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1144, allocations: 0 / 353.9 MB, free: 9.559 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.689e-05/0.1144, allocations: 0 / 353.9 MB, free: 9.559 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.002531/0.1169, allocations: 1.977 MB / 355.8 MB, free: 7.523 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.117, allocations: 12.03 kB / 355.9 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002118/0.1172, allocations: 202.6 kB / 356.1 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001586/0.1188, allocations: 1.341 MB / 357.4 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.004e-05/0.1188, allocations: 36.94 kB / 357.4 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.265e-05/0.1189, allocations: 40 kB / 357.5 MB, free: 5.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009247/0.1198, allocations: 0.5119 MB / 358 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.1199, allocations: 0 / 358 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.89e-05/0.1199, allocations: 16 kB / 358 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.082e-05/0.12, allocations: 16 kB / 358 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008969/0.1209, allocations: 476.1 kB / 358.5 MB, free: 4.836 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002672/0.1235, allocations: 2.116 MB / 360.6 MB, free: 2.637 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009206/0.1245, allocations: 0.7002 MB / 361.3 MB, free: 1.891 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006798/0.1252, allocations: 0.5173 MB / 361.8 MB, free: 1.371 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006879/0.1321, allocations: 6.505 MB / 368.3 MB, free: 9.879 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005427/0.1326, allocations: 298.5 kB / 368.6 MB, free: 9.574 MB / 318.1 MB Notification: Performance of pre-optimization done (n=55): time 2.144e-06/0.1326, allocations: 3.938 kB / 368.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.00342/0.1361, allocations: 1.96 MB / 370.6 MB, free: 7.551 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.251e-05/0.1361, allocations: 63.83 kB / 370.6 MB, free: 7.477 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/0.1375, allocations: 1.292 MB / 371.9 MB, free: 6.188 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.182e-05/0.1375, allocations: 37.7 kB / 372 MB, free: 6.145 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005274/0.138, allocations: 0.7072 MB / 372.7 MB, free: 5.434 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.1382, allocations: 205 kB / 372.9 MB, free: 5.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.1384, allocations: 122.2 kB / 373 MB, free: 5.105 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.1385, allocations: 329.9 kB / 373.3 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003886/0.1389, allocations: 197.6 kB / 373.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004897/0.1394, allocations: 363.8 kB / 373.9 MB, free: 4.16 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002204/0.1416, allocations: 1.139 MB / 375 MB, free: 2.949 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1416, allocations: 0 / 375 MB, free: 2.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001524/0.1432, allocations: 0.918 MB / 375.9 MB, free: 2.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.1432, allocations: 11.98 kB / 375.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.999e-05/0.1433, allocations: 56 kB / 376 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003903/0.1437, allocations: 156.5 kB / 376.1 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004333/0.1441, allocations: 115.8 kB / 376.2 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1466/0.2907, allocations: 2.511 MB / 378.8 MB, free: 52.6 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007639/0.2916, allocations: 29.75 kB / 378.8 MB, free: 52.6 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.795e-05/0.2916, allocations: 37.06 kB / 378.8 MB, free: 52.6 MB / 318.1 MB Warning: Assuming fixed start value for the following 2 variables: T2.vbx:VARIABLE(unit = "V" fixed = true ) type: Real T1.vbx:VARIABLE(unit = "V" fixed = true ) type: Real 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.000499/0.2921, allocations: 278.6 kB / 379.1 MB, free: 52.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002392/0.2924, allocations: 179.7 kB / 379.3 MB, free: 52.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001919/0.2943, allocations: 0.8864 MB / 380.2 MB, free: 52.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.2943, allocations: 5.5 kB / 380.2 MB, free: 52.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.2944, allocations: 10.31 kB / 380.2 MB, free: 52.4 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.2944, allocations: 2.203 kB / 380.2 MB, free: 52.4 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001208/0.2956, allocations: 0.8658 MB / 381 MB, free: 52.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.436e-05/0.2957, allocations: 54.84 kB / 381.1 MB, free: 52.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003241/0.296, allocations: 62.3 kB / 381.2 MB, free: 52.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003971/0.2964, allocations: 146 kB / 381.3 MB, free: 52.19 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.361e-05/0.2965, allocations: 21.06 kB / 381.3 MB, free: 52.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002211/0.2987, allocations: 2.511 MB / 383.8 MB, free: 50.3 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.2987, allocations: 0.5625 kB / 383.8 MB, free: 50.3 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001777/0.3005, allocations: 1.058 MB / 384.9 MB, free: 49.92 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002729/0.3008, allocations: 252.6 kB / 385.1 MB, free: 49.72 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.3009, allocations: 7.984 kB / 385.1 MB, free: 49.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003406/0.3012, allocations: 25.08 kB / 385.2 MB, free: 49.7 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.3014, allocations: 51.69 kB / 385.2 MB, free: 49.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.312e-05/0.3014, allocations: 21.33 kB / 385.2 MB, free: 49.7 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001006/0.3024, allocations: 0.864 MB / 386.1 MB, free: 49.37 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3024, allocations: 0 / 386.1 MB, free: 49.37 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008773/0.3033, allocations: 375.8 kB / 386.5 MB, free: 49.35 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 (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.0006354/0.304, allocations: 455.7 kB / 386.9 MB, free: 49.24 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00153/0.3055, allocations: 0.8579 MB / 387.8 MB, free: 48.84 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3055, allocations: 0.5469 kB / 387.8 MB, free: 48.84 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008464/0.3064, allocations: 0.5835 MB / 388.4 MB, free: 48.52 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006391/0.307, allocations: 181.9 kB / 388.5 MB, free: 48.42 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003497/0.3105, allocations: 2.836 MB / 391.4 MB, free: 46.74 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006148/0.3112, allocations: 1.174 MB / 392.5 MB, free: 46.01 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005549/0.3117, allocations: 182.8 kB / 392.7 MB, free: 45.96 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.3118, allocations: 85.88 kB / 392.8 MB, free: 45.96 MB / 318.1 MB Notification: Performance of SimCode: time 5.2e-07/0.3118, allocations: 3.828 kB / 392.8 MB, free: 45.96 MB / 318.1 MB Notification: Performance of Templates: time 0.02213/0.334, allocations: 13.29 MB / 406.1 MB, free: 37.05 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches