Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001343/0.001343, allocations: 175.1 kB / 16.72 MB, free: 5.055 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.498/1.498, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.0007961/0.0007961, allocations: 89.36 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003872/0.0003874, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2697, allocations: 47.57 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003244/0.273, allocations: 2.65 MB / 377.7 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.2744, allocations: 0.7348 MB / 378.5 MB, free: 42.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.2746, allocations: 6.25 kB / 378.5 MB, free: 42.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.2748, allocations: 49.67 kB / 378.5 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001599/0.2749, allocations: 87.2 kB / 378.6 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003084/0.2752, allocations: 77.11 kB / 378.7 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003638/0.2756, allocations: 398 kB / 379.1 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002427/0.2759, allocations: 112.1 kB / 379.2 MB, free: 42.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002343/0.2761, allocations: 131.7 kB / 379.3 MB, free: 42.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002047/0.2763, allocations: 156.8 kB / 379.5 MB, free: 42.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.55e-05/0.2764, allocations: 19.09 kB / 379.5 MB, free: 42.08 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.54e-05/0.2765, allocations: 18.31 kB / 379.5 MB, free: 42.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.245e-05/0.2765, allocations: 54.33 kB / 379.6 MB, free: 42.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.2767, allocations: 189 kB / 379.7 MB, free: 41.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002887/0.277, allocations: 312.6 kB / 380.1 MB, free: 41.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.397e-06/0.277, allocations: 0 / 380.1 MB, free: 41.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.317e-06/0.277, allocations: 1.125 kB / 380.1 MB, free: 41.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.277, allocations: 0 / 380.1 MB, free: 41.67 MB / 298.7 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.001045/0.2781, allocations: 0.5939 MB / 380.6 MB, free: 41.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.2781, allocations: 9.969 kB / 380.7 MB, free: 41.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.479e-05/0.2782, allocations: 40.56 kB / 380.7 MB, free: 41.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000292/0.2785, allocations: 278.3 kB / 381 MB, free: 40.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.764e-05/0.2786, allocations: 83.27 kB / 381.1 MB, free: 40.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.491e-05/0.2787, allocations: 37.62 kB / 381.1 MB, free: 40.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000551/0.2792, allocations: 337.3 kB / 381.4 MB, free: 40.53 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.2792, allocations: 1.031 kB / 381.4 MB, free: 40.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.155e-05/0.2793, allocations: 11.56 kB / 381.4 MB, free: 40.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.2793, allocations: 7.531 kB / 381.4 MB, free: 40.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004224/0.2797, allocations: 227.2 kB / 381.7 MB, free: 40.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001752/0.2815, allocations: 1.388 MB / 383 MB, free: 39.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003138/0.2818, allocations: 164.8 kB / 383.2 MB, free: 39.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.282, allocations: 92.17 kB / 383.3 MB, free: 39.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.282, allocations: 6.375 kB / 383.3 MB, free: 39.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002969/0.2823, allocations: 153.7 kB / 383.5 MB, free: 38.94 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 2.314e-06/0.2823, allocations: 0 / 383.5 MB, free: 38.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001099/0.2834, allocations: 429 kB / 383.9 MB, free: 38.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.493e-05/0.2835, allocations: 110 kB / 384 MB, free: 38.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003301/0.2838, allocations: 256.6 kB / 384.2 MB, free: 38.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/0.2839, allocations: 32.33 kB / 384.3 MB, free: 38.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.284, allocations: 213.2 kB / 384.5 MB, free: 38.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.939e-05/0.2841, allocations: 65.41 kB / 384.5 MB, free: 38.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.775e-05/0.2841, allocations: 8 kB / 384.5 MB, free: 38.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.817e-05/0.2842, allocations: 332.7 kB / 384.9 MB, free: 37.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.2844, allocations: 82.03 kB / 384.9 MB, free: 37.7 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002514/0.2847, allocations: 184.1 kB / 385.1 MB, free: 37.53 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004309/0.2851, allocations: 238.7 kB / 385.4 MB, free: 37.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.2851, allocations: 1.156 kB / 385.4 MB, free: 37.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008902/0.286, allocations: 351.6 kB / 385.7 MB, free: 37.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.659e-05/0.2861, allocations: 9.531 kB / 385.7 MB, free: 37.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.2861, allocations: 7.406 kB / 385.7 MB, free: 37.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003067/0.2864, allocations: 53.12 kB / 385.8 MB, free: 37.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002634/0.2867, allocations: 66.28 kB / 385.8 MB, free: 37.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009829/0.2877, allocations: 1.417 MB / 387.3 MB, free: 35.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002929/0.288, allocations: 46.8 kB / 387.3 MB, free: 35.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.389e-05/0.288, allocations: 10.28 kB / 387.3 MB, free: 35.62 MB / 298.7 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 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * 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 (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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001397/0.2882, allocations: 150.1 kB / 387.5 MB, free: 35.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.784e-05/0.2882, allocations: 28.91 kB / 387.5 MB, free: 35.47 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.209e-05/0.2882, allocations: 28.14 kB / 387.5 MB, free: 35.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2883, allocations: 2.094 kB / 387.5 MB, free: 35.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2883, allocations: 5.062 kB / 387.5 MB, free: 35.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.2883, allocations: 3.984 kB / 387.5 MB, free: 35.44 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003077/0.2886, allocations: 340.7 kB / 387.9 MB, free: 35.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.103e-06/0.2886, allocations: 0 / 387.9 MB, free: 35.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001996/0.2888, allocations: 45.88 kB / 387.9 MB, free: 35.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001792/0.289, allocations: 53.62 kB / 388 MB, free: 35.08 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.936e-05/0.289, allocations: 6 kB / 388 MB, free: 35.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008675/0.2899, allocations: 1.321 MB / 389.3 MB, free: 33.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.2899, allocations: 7.938 kB / 389.3 MB, free: 33.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000654/0.2906, allocations: 368.8 kB / 389.6 MB, free: 33.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.317e-05/0.2907, allocations: 112.8 kB / 389.8 MB, free: 33.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.533e-05/0.2907, allocations: 8 kB / 389.8 MB, free: 33.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.2909, allocations: 32.03 kB / 389.8 MB, free: 33.21 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.56e-05/0.291, allocations: 31.94 kB / 389.8 MB, free: 33.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.291, allocations: 4 kB / 389.8 MB, free: 33.17 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001438/0.2912, allocations: 186 kB / 390 MB, free: 32.99 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2912, allocations: 0 / 390 MB, free: 32.99 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003668/0.2915, allocations: 87.75 kB / 390.1 MB, free: 32.9 MB / 298.7 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 (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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001131/0.2917, allocations: 111.2 kB / 390.2 MB, free: 32.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005234/0.2922, allocations: 310.4 kB / 390.5 MB, free: 32.47 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2922, allocations: 4 kB / 390.5 MB, free: 32.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002337/0.2925, allocations: 203.3 kB / 390.7 MB, free: 32.25 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002666/0.2927, allocations: 36.48 kB / 390.7 MB, free: 32.22 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.294, allocations: 0.8632 MB / 391.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001893/0.2942, allocations: 0.7716 MB / 392.4 MB, free: 30.53 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.679e-05/0.2943, allocations: 19.44 kB / 392.4 MB, free: 30.51 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.2943, allocations: 0 / 392.4 MB, free: 30.51 MB / 298.7 MB Notification: Performance of Templates: time 0.005764/0.3001, allocations: 4.577 MB / 397 MB, free: 25.94 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches