Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002156/0.002156, allocations: 201.4 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.566/1.566, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009376/0.0009381, allocations: 103.6 kB / 299.9 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003588/0.0003593, allocations: 8 kB / 360.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2835, allocations: 51.4 MB / 412 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002526/0.286, allocations: 2.451 MB / 414.5 MB, free: 23.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001234/0.2873, allocations: 0.8845 MB / 415.4 MB, free: 22.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001291/0.2875, allocations: 8.594 kB / 415.4 MB, free: 22.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.2876, allocations: 35.69 kB / 415.4 MB, free: 22.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001505/0.2878, allocations: 86.72 kB / 415.5 MB, free: 22.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002903/0.2881, allocations: 83.91 kB / 415.6 MB, free: 22.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002699/0.2883, allocations: 350.4 kB / 415.9 MB, free: 22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000203/0.2885, allocations: 101.7 kB / 416 MB, free: 21.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.813e-05/0.2887, allocations: 119.5 kB / 416.1 MB, free: 21.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.2888, allocations: 143.3 kB / 416.3 MB, free: 21.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.349e-05/0.2888, allocations: 16 kB / 416.3 MB, free: 21.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.175e-05/0.2889, allocations: 16 kB / 416.3 MB, free: 21.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.981e-05/0.289, allocations: 55.75 kB / 416.4 MB, free: 21.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001557/0.2891, allocations: 176.9 kB / 416.5 MB, free: 21.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000238/0.2894, allocations: 332.3 kB / 416.9 MB, free: 21.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.2894, allocations: 0 / 416.9 MB, free: 21.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2894, allocations: 0 / 416.9 MB, free: 21.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.2894, allocations: 4 kB / 416.9 MB, free: 21.04 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0007922/0.2902, allocations: 0.5589 MB / 417.4 MB, free: 20.44 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.2902, allocations: 11.97 kB / 417.4 MB, free: 20.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.786e-05/0.2903, allocations: 44.55 kB / 417.5 MB, free: 20.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002462/0.2906, allocations: 260.4 kB / 417.7 MB, free: 20.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.201e-05/0.2906, allocations: 72.62 kB / 417.8 MB, free: 20.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.269e-05/0.2907, allocations: 28.38 kB / 417.8 MB, free: 19.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003975/0.2911, allocations: 301.9 kB / 418.1 MB, free: 19.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.2911, allocations: 0 / 418.1 MB, free: 19.67 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.86e-05/0.2911, allocations: 12 kB / 418.1 MB, free: 19.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.2912, allocations: 8 kB / 418.2 MB, free: 19.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002823/0.2914, allocations: 190.1 kB / 418.3 MB, free: 19.47 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.2927, allocations: 1.131 MB / 419.5 MB, free: 18.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.293, allocations: 170.5 kB / 419.6 MB, free: 18.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.2932, allocations: 76.83 kB / 419.7 MB, free: 18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-05/0.2932, allocations: 7.984 kB / 419.7 MB, free: 17.99 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002324/0.2934, allocations: 156.6 kB / 419.9 MB, free: 17.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.223e-06/0.2934, allocations: 4 kB / 419.9 MB, free: 17.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008703/0.2943, allocations: 391.2 kB / 420.3 MB, free: 17.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.2944, allocations: 110.8 kB / 420.4 MB, free: 17.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.2945, allocations: 225 kB / 420.6 MB, free: 17.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.2946, allocations: 29.7 kB / 420.6 MB, free: 17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.29e-05/0.2946, allocations: 176.2 kB / 420.8 MB, free: 16.83 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.941e-05/0.2947, allocations: 75.08 kB / 420.9 MB, free: 16.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.047e-05/0.2947, allocations: 4 kB / 420.9 MB, free: 16.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.357e-05/0.2948, allocations: 338.8 kB / 421.2 MB, free: 16.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.2949, allocations: 75.77 kB / 421.3 MB, free: 16.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.295, allocations: 141.6 kB / 421.4 MB, free: 16.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.2952, allocations: 186.3 kB / 421.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2952, allocations: 0 / 421.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003364/0.2956, allocations: 275.2 kB / 421.9 MB, free: 15.69 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.2956, allocations: 4 kB / 421.9 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.2956, allocations: 7.938 kB / 421.9 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002448/0.2959, allocations: 56.97 kB / 421.9 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001972/0.2961, allocations: 59.91 kB / 422 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008759/0.2969, allocations: 1.404 MB / 423.4 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002219/0.2972, allocations: 31.75 kB / 423.4 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.2972, allocations: 15.98 kB / 423.4 MB, free: 13.97 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$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 (34): * Single equations (assignments): 33 * 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.0001042/0.2973, allocations: 149.8 kB / 423.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.732e-05/0.2974, allocations: 27.66 kB / 423.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.878e-05/0.2974, allocations: 30.17 kB / 423.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2974, allocations: 4 kB / 423.6 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.2974, allocations: 0 / 423.6 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.2974, allocations: 0 / 423.6 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000215/0.2976, allocations: 313.4 kB / 424 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.2977, allocations: 0 / 424 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001524/0.2978, allocations: 39.92 kB / 424 MB, free: 13.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001619/0.298, allocations: 52.81 kB / 424 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.298, allocations: 7.984 kB / 424.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007215/0.2987, allocations: 1.323 MB / 425.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2988, allocations: 0 / 425.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004966/0.2993, allocations: 336 kB / 425.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.001e-05/0.2993, allocations: 116.8 kB / 425.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.218e-05/0.2994, allocations: 4 kB / 425.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001586/0.2995, allocations: 24.05 kB / 425.8 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.33e-05/0.2996, allocations: 27.95 kB / 425.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.2996, allocations: 15.92 kB / 425.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.633e-05/0.2997, allocations: 156.5 kB / 426 MB, free: 11.14 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2997, allocations: 0 / 426 MB, free: 11.14 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002972/0.3, allocations: 79.84 kB / 426.1 MB, free: 11.06 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001132/0.3002, allocations: 107.2 kB / 426.2 MB, free: 10.95 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004232/0.3006, allocations: 282.5 kB / 426.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3006, allocations: 0 / 426.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002118/0.3008, allocations: 202.5 kB / 426.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.3012, allocations: 40.73 kB / 426.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001344/0.3025, allocations: 0.8338 MB / 427.6 MB, free: 9.551 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001546/0.3027, allocations: 0.756 MB / 428.3 MB, free: 8.77 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.623e-05/0.3028, allocations: 30.27 kB / 428.4 MB, free: 8.742 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.536e-05/0.3028, allocations: 19.44 kB / 428.4 MB, free: 8.723 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.3028, allocations: 0 / 428.4 MB, free: 8.723 MB / 298.7 MB Notification: Performance of Templates: time 0.005348/0.3082, allocations: 2.748 MB / 431.1 MB, free: 5.984 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches