Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001378/0.001378, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001389/0.001389, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.397/1.397, allocations: 227.7 MB / 247.7 MB, free: 10.43 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 70.84 kB / 307.9 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1038, allocations: 50.54 MB / 358.4 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004658/0.1085, allocations: 3.152 MB / 361.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001523/0.11, allocations: 0.8256 MB / 362.4 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.1102, allocations: 7.938 kB / 362.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001787/0.1104, allocations: 59.44 kB / 362.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002029/0.1106, allocations: 103 kB / 362.6 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004053/0.111, allocations: 123.7 kB / 362.7 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004555/0.1115, allocations: 418.2 kB / 363.1 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002631/0.1118, allocations: 139.7 kB / 363.2 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002484/0.112, allocations: 155.4 kB / 363.4 MB, free: 9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002484/0.1123, allocations: 187.2 kB / 363.6 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.923e-05/0.1124, allocations: 36 kB / 363.6 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.772e-05/0.1125, allocations: 36 kB / 363.6 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.049e-05/0.1126, allocations: 83.69 kB / 363.7 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001935/0.1128, allocations: 183.1 kB / 363.9 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000487/0.1132, allocations: 422.8 kB / 364.3 MB, free: 8.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.1133, allocations: 4 kB / 364.3 MB, free: 8.066 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1133, allocations: 0 / 364.3 MB, free: 8.066 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1133, allocations: 0 / 364.3 MB, free: 8.066 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001143/0.1144, allocations: 0.6587 MB / 365 MB, free: 7.355 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.1145, allocations: 11.97 kB / 365 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002083/0.1147, allocations: 48.47 kB / 365 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003884/0.1151, allocations: 281.3 kB / 365.3 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.034e-05/0.1152, allocations: 80.62 kB / 365.4 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.433e-05/0.1153, allocations: 28.38 kB / 365.4 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005842/0.1158, allocations: 342.8 kB / 365.8 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.1159, allocations: 0 / 365.8 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.663e-05/0.1159, allocations: 16 kB / 365.8 MB, free: 6.504 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.1159, allocations: 8 kB / 365.8 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004408/0.1164, allocations: 218.5 kB / 366 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002001/0.1184, allocations: 1.372 MB / 367.4 MB, free: 4.809 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003576/0.1188, allocations: 166.6 kB / 367.5 MB, free: 4.637 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001899/0.119, allocations: 92.77 kB / 367.6 MB, free: 4.543 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.111e-05/0.119, allocations: 7.984 kB / 367.6 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003618/0.1194, allocations: 157.8 kB / 367.8 MB, free: 4.359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.054e-06/0.1194, allocations: 0 / 367.8 MB, free: 4.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001201/0.1206, allocations: 404.4 kB / 368.2 MB, free: 3.938 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.99e-05/0.1207, allocations: 110.8 kB / 368.3 MB, free: 3.805 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002906/0.121, allocations: 258.6 kB / 368.5 MB, free: 3.539 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.017e-05/0.121, allocations: 29.7 kB / 368.6 MB, free: 3.504 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001661/0.1212, allocations: 207.9 kB / 368.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.532e-05/0.1213, allocations: 67.08 kB / 368.8 MB, free: 3.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.1214, allocations: 69.94 kB / 368.9 MB, free: 3.156 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.1216, allocations: 342.8 kB / 369.2 MB, free: 2.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.1217, allocations: 72.62 kB / 369.3 MB, free: 2.742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002485/0.122, allocations: 173.5 kB / 369.5 MB, free: 2.527 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003864/0.1224, allocations: 245.1 kB / 369.7 MB, free: 2.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1224, allocations: 0 / 369.7 MB, free: 2.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007512/0.1232, allocations: 340.2 kB / 370 MB, free: 1.914 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.1232, allocations: 8 kB / 370.1 MB, free: 1.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.1232, allocations: 7.938 kB / 370.1 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002717/0.1235, allocations: 57.16 kB / 370.1 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.1238, allocations: 59.91 kB / 370.2 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00159/0.1254, allocations: 1.576 MB / 371.8 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002797/0.1257, allocations: 47.8 kB / 371.8 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/0.1257, allocations: 12 kB / 371.8 MB, free: 8 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.1374/0.2631, allocations: 148.9 kB / 372 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.821e-05/0.2632, allocations: 24.66 kB / 372 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.941e-05/0.2632, allocations: 30.77 kB / 372 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.2632, allocations: 2.719 kB / 372 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.2633, allocations: 1.219 kB / 372 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.2633, allocations: 1.891 kB / 372 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003419/0.2636, allocations: 346.6 kB / 372.4 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.2636, allocations: 3.875 kB / 372.4 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002164/0.2638, allocations: 37.44 kB / 372.4 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002119/0.2641, allocations: 53.73 kB / 372.4 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.2641, allocations: 3.344 kB / 372.5 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008887/0.265, allocations: 1.425 MB / 373.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.265, allocations: 1.25 kB / 373.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006566/0.2657, allocations: 353.5 kB / 374.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.905e-05/0.2658, allocations: 116.6 kB / 374.3 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.745e-05/0.2658, allocations: 6.297 kB / 374.3 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.266, allocations: 16.38 kB / 374.4 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.389e-05/0.2661, allocations: 34.7 kB / 374.4 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.2661, allocations: 5.094 kB / 374.4 MB, free: 18.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001511/0.2663, allocations: 188.5 kB / 374.6 MB, free: 17.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2663, allocations: 1.312 kB / 374.6 MB, free: 17.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004047/0.2667, allocations: 89.8 kB / 374.7 MB, free: 17.98 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 9.44e-05/0.2668, allocations: 106.7 kB / 374.8 MB, free: 17.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006014/0.2674, allocations: 320.8 kB / 375.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.2674, allocations: 0 / 375.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002616/0.2677, allocations: 205.2 kB / 375.3 MB, free: 17.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002599/0.2679, allocations: 34.55 kB / 375.3 MB, free: 17.67 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/0.2693, allocations: 0.7183 MB / 376 MB, free: 17.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001976/0.2695, allocations: 0.7702 MB / 376.8 MB, free: 16.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.581e-05/0.2696, allocations: 23.78 kB / 376.8 MB, free: 16.61 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2696, allocations: 0 / 376.8 MB, free: 16.61 MB / 302.1 MB Notification: Performance of Templates: time 0.007109/0.2767, allocations: 4.656 MB / 381.5 MB, free: 16.28 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches