Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_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.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 111 kB / 17.74 MB, free: 5.34 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.001212/0.001212, allocations: 192.3 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 242.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 47.92 kB / 352 MB, free: 3.207 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2447, allocations: 49.44 MB / 401.4 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004364/0.2491, allocations: 3.144 MB / 404.6 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.2506, allocations: 0.7322 MB / 405.3 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002591/0.2509, allocations: 8 kB / 405.3 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002153/0.2511, allocations: 67.36 kB / 405.4 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000262/0.2514, allocations: 103 kB / 405.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004033/0.2518, allocations: 107.8 kB / 405.6 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005033/0.2523, allocations: 422.1 kB / 406 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002515/0.2526, allocations: 143.7 kB / 406.1 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002389/0.2528, allocations: 151.4 kB / 406.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002612/0.2531, allocations: 183.2 kB / 406.5 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.638e-05/0.2532, allocations: 32 kB / 406.5 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.169e-05/0.2533, allocations: 36 kB / 406.5 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.857e-05/0.2533, allocations: 79.77 kB / 406.6 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001898/0.2535, allocations: 187.1 kB / 406.8 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004214/0.254, allocations: 427.6 kB / 407.2 MB, free: 3.031 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.254, allocations: 0 / 407.2 MB, free: 3.031 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.254, allocations: 0 / 407.2 MB, free: 3.031 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.258e-05/0.254, allocations: 0 / 407.2 MB, free: 3.031 MB / 318.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.001105/0.2551, allocations: 0.6471 MB / 407.8 MB, free: 2.336 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.2551, allocations: 15.89 kB / 407.9 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.911e-05/0.2552, allocations: 40.47 kB / 407.9 MB, free: 2.281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004095/0.2557, allocations: 277.2 kB / 408.2 MB, free: 1.969 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.565e-05/0.2557, allocations: 84.61 kB / 408.3 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.236e-05/0.2558, allocations: 28.38 kB / 408.3 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006011/0.2564, allocations: 342.8 kB / 408.6 MB, free: 1.492 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.2564, allocations: 0 / 408.6 MB, free: 1.492 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.663e-05/0.2565, allocations: 16 kB / 408.6 MB, free: 1.477 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.2565, allocations: 8 kB / 408.6 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004525/0.257, allocations: 218.5 kB / 408.9 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001922/0.2589, allocations: 1.36 MB / 410.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000339/0.2592, allocations: 172.9 kB / 410.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.2594, allocations: 96.77 kB / 410.5 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.2595, allocations: 7.922 kB / 410.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002858/0.2597, allocations: 155.2 kB / 410.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.2598, allocations: 0 / 410.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001127/0.2609, allocations: 409.3 kB / 411 MB, free: 14.92 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.511e-05/0.261, allocations: 110.8 kB / 411.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/0.2612, allocations: 258.6 kB / 411.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.2613, allocations: 33.7 kB / 411.4 MB, free: 14.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.2614, allocations: 203.9 kB / 411.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.949e-05/0.2615, allocations: 75 kB / 411.7 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.753e-05/0.2616, allocations: 62.03 kB / 411.8 MB, free: 14.15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.2617, allocations: 330.8 kB / 412.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/0.2619, allocations: 80.61 kB / 412.2 MB, free: 13.74 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002192/0.2622, allocations: 177.5 kB / 412.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003467/0.2625, allocations: 240.2 kB / 412.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2625, allocations: 4 kB / 412.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006815/0.2632, allocations: 344.1 kB / 412.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.2632, allocations: 4.344 kB / 412.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.2633, allocations: 8 kB / 412.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002598/0.2635, allocations: 52.81 kB / 413 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.2638, allocations: 63.91 kB / 413 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00135/0.2652, allocations: 1.576 MB / 414.6 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002683/0.2654, allocations: 47.66 kB / 414.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.176e-05/0.2655, allocations: 16 kB / 414.7 MB, free: 11 MB / 334.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.0001596/0.2657, allocations: 145.8 kB / 414.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.113e-05/0.2657, allocations: 23.72 kB / 414.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.691e-05/0.2658, allocations: 34.11 kB / 414.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.2658, allocations: 4.062 kB / 414.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.2658, allocations: 0 / 414.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.2658, allocations: 4 kB / 414.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003376/0.2661, allocations: 337.3 kB / 415.2 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2661, allocations: 0 / 415.2 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001952/0.2663, allocations: 43.92 kB / 415.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001979/0.2666, allocations: 52.75 kB / 415.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.457e-05/0.2666, allocations: 11.98 kB / 415.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001149/0.2677, allocations: 1.414 MB / 416.7 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.2678, allocations: 0 / 416.7 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007061/0.2685, allocations: 348.2 kB / 417.1 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.2686, allocations: 116.8 kB / 417.2 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.169e-05/0.2686, allocations: 4 kB / 417.2 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.2688, allocations: 19.98 kB / 417.2 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.142e-05/0.2689, allocations: 31.89 kB / 417.2 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.269, allocations: 7.984 kB / 417.2 MB, free: 8.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001743/0.2691, allocations: 190 kB / 417.4 MB, free: 7.992 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2691, allocations: 0 / 417.4 MB, free: 7.992 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004245/0.2696, allocations: 87.75 kB / 417.5 MB, free: 7.906 MB / 334.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 0.0001408/0.2697, allocations: 107.2 kB / 417.6 MB, free: 7.789 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006319/0.2704, allocations: 310.9 kB / 417.9 MB, free: 7.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.2704, allocations: 12.19 kB / 417.9 MB, free: 7.461 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002986/0.2707, allocations: 206.5 kB / 418.1 MB, free: 7.246 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.271, allocations: 40.47 kB / 418.2 MB, free: 7.207 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001512/0.2725, allocations: 0.6934 MB / 418.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.2728, allocations: 0.7753 MB / 419.6 MB, free: 5.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.021e-05/0.2729, allocations: 23.44 kB / 419.7 MB, free: 5.656 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2729, allocations: 0 / 419.7 MB, free: 5.656 MB / 334.1 MB Notification: Performance of Templates: time 0.006903/0.2798, allocations: 4.634 MB / 424.3 MB, free: 1.023 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches