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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001021/0.001021, allocations: 175.1 kB / 14.1 MB, free: 1.207 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.49/1.49, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008978/0.000898, allocations: 86.66 kB / 268 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.158e-05/3.162e-05, allocations: 7.984 kB / 322.4 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1118, allocations: 47.57 MB / 370 MB, free: 1.715 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3761/0.488, allocations: 90.27 MB / 460.3 MB, free: 3.238 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003084/0.4884, allocations: 68.53 kB / 460.4 MB, free: 3.207 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1121/0.6005, allocations: 54.44 MB / 0.5027 GB, free: 13.98 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6006, allocations: 0 / 0.5027 GB, free: 13.98 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.557e-05/0.6006, allocations: 24 kB / 0.5028 GB, free: 13.96 MB / 394.7 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.002719/0.6033, allocations: 1.548 MB / 0.5043 GB, free: 12.36 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.6034, allocations: 8.031 kB / 0.5043 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002268/0.6036, allocations: 201.7 kB / 0.5045 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001825/0.6055, allocations: 1.135 MB / 0.5056 GB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.023e-05/0.6055, allocations: 36.94 kB / 0.5056 GB, free: 10.94 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.449e-05/0.6056, allocations: 44 kB / 0.5056 GB, free: 10.89 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000879/0.6065, allocations: 488.3 kB / 0.5061 GB, free: 10.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.6065, allocations: 0 / 0.5061 GB, free: 10.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.847e-05/0.6066, allocations: 19.98 kB / 0.5061 GB, free: 10.39 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.346e-05/0.6066, allocations: 16 kB / 0.5061 GB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006597/0.6073, allocations: 428.1 kB / 0.5066 GB, free: 9.957 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003226/0.6105, allocations: 2.128 MB / 0.5086 GB, free: 7.746 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008304/0.6114, allocations: 0.6441 MB / 0.5093 GB, free: 7.051 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006153/0.612, allocations: 498 kB / 0.5097 GB, free: 6.555 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00929/0.6213, allocations: 7.744 MB / 0.5173 GB, free: 13.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004326/0.6218, allocations: 258.6 kB / 0.5175 GB, free: 13.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=55): time 2.785e-06/0.6218, allocations: 0 / 0.5175 GB, free: 13.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=59): time 0.002761/0.6245, allocations: 1.679 MB / 0.5192 GB, free: 11.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.612e-05/0.6246, allocations: 63.77 kB / 0.5192 GB, free: 11.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/0.626, allocations: 1.072 MB / 0.5203 GB, free: 10.45 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.833e-05/0.626, allocations: 37.7 kB / 0.5203 GB, free: 10.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006025/0.6266, allocations: 0.7111 MB / 0.521 GB, free: 9.695 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.6268, allocations: 201.1 kB / 0.5212 GB, free: 9.496 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.628e-05/0.6268, allocations: 8 kB / 0.5212 GB, free: 9.488 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.627, allocations: 334 kB / 0.5215 GB, free: 9.156 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003055/0.6273, allocations: 165.6 kB / 0.5217 GB, free: 8.996 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003946/0.6277, allocations: 335.8 kB / 0.522 GB, free: 8.602 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003533/0.6281, allocations: 219.9 kB / 0.5222 GB, free: 8.387 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.6281, allocations: 3.938 kB / 0.5222 GB, free: 8.383 MB / 410.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001265/0.6293, allocations: 0.8479 MB / 0.5231 GB, free: 7.523 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.6294, allocations: 8 kB / 0.5231 GB, free: 7.516 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-05/0.6295, allocations: 59.98 kB / 0.5231 GB, free: 7.457 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004082/0.6299, allocations: 157.4 kB / 0.5233 GB, free: 7.301 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004587/0.6304, allocations: 119.8 kB / 0.5234 GB, free: 7.184 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00279/0.6332, allocations: 2.284 MB / 0.5256 GB, free: 4.766 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000493/0.6337, allocations: 35.98 kB / 0.5257 GB, free: 4.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.211e-05/0.6337, allocations: 35.94 kB / 0.5257 GB, free: 4.695 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: T2.vcs:VARIABLE(unit = "V" ) type: Real T1.vcs:VARIABLE(unit = "V" ) 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 ($PRE.v.counter,v.counter,$whenCondition1,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete 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 (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%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001986/0.634, allocations: 144.8 kB / 0.5258 GB, free: 4.547 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/0.6341, allocations: 185.8 kB / 0.526 GB, free: 4.363 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001773/0.6359, allocations: 0.8358 MB / 0.5268 GB, free: 3.516 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.6359, allocations: 4 kB / 0.5268 GB, free: 3.512 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.636, allocations: 7.953 kB / 0.5268 GB, free: 3.504 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.636, allocations: 7.938 kB / 0.5268 GB, free: 3.496 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.6371, allocations: 0.8631 MB / 0.5277 GB, free: 2.582 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.791e-05/0.6372, allocations: 55.98 kB / 0.5277 GB, free: 2.527 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003011/0.6375, allocations: 63.95 kB / 0.5278 GB, free: 2.465 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003639/0.6379, allocations: 151.2 kB / 0.5279 GB, free: 2.316 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.736e-05/0.6379, allocations: 23.95 kB / 0.528 GB, free: 2.293 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2452/0.8831, allocations: 2.265 MB / 0.5302 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.8832, allocations: 0 / 0.5302 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002423/0.8856, allocations: 0.9745 MB / 0.5311 GB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005578/0.8862, allocations: 257.3 kB / 0.5314 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001292/0.8863, allocations: 13.03 kB / 0.5314 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003846/0.8867, allocations: 23.89 kB / 0.5314 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/0.8869, allocations: 47.89 kB / 0.5315 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.163e-05/0.8869, allocations: 23.64 kB / 0.5315 GB, free: 106.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001235/0.8882, allocations: 0.8257 MB / 0.5323 GB, free: 106.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.8882, allocations: 0 / 0.5323 GB, free: 106.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001363/0.8896, allocations: 433.5 kB / 0.5327 GB, free: 106.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vcs,T2.vbe,T2.vcs) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * 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 (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 {(6,50.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009611/0.8905, allocations: 0.5262 MB / 0.5332 GB, free: 106.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.892, allocations: 0.7888 MB / 0.534 GB, free: 106.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.892, allocations: 1 kB / 0.534 GB, free: 106.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00093/0.893, allocations: 0.5605 MB / 0.5345 GB, free: 105.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006275/0.8936, allocations: 159.8 kB / 0.5347 GB, free: 105.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003137/0.8968, allocations: 1.802 MB / 0.5364 GB, free: 105.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007823/0.8976, allocations: 1.201 MB / 0.5376 GB, free: 104.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005978/0.8982, allocations: 152 kB / 0.5378 GB, free: 104.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.8983, allocations: 69.81 kB / 0.5378 GB, free: 104.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.022e-06/0.8983, allocations: 0 / 0.5378 GB, free: 104.6 MB / 410.7 MB Notification: Performance of Templates: time 0.02648/0.9248, allocations: 14.19 MB / 0.5517 GB, free: 103.8 MB / 410.7 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