Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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_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_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001067/0.001067, allocations: 177.9 kB / 17.36 MB, free: 4.324 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.527/1.527, allocations: 205.6 MB / 223.7 MB, free: 8.961 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008004/0.0008006, allocations: 94.36 kB / 272.1 MB, free: 8.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002943/0.000294, allocations: 8 kB / 329 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2938, allocations: 47.58 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00285/0.2967, allocations: 2.652 MB / 379.3 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.2978, allocations: 0.7444 MB / 380 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001416/0.298, allocations: 6.312 kB / 380 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.2981, allocations: 50.11 kB / 380.1 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001559/0.2983, allocations: 82.06 kB / 380.1 MB, free: 42.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002885/0.2986, allocations: 98.06 kB / 380.2 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003447/0.2989, allocations: 403.1 kB / 380.6 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.2991, allocations: 113 kB / 380.7 MB, free: 42.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.2993, allocations: 138.5 kB / 380.9 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.2995, allocations: 152.3 kB / 381 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.95e-05/0.2996, allocations: 19.88 kB / 381 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.749e-05/0.2996, allocations: 20.69 kB / 381.1 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.081e-05/0.2997, allocations: 67.59 kB / 381.1 MB, free: 42.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001678/0.2999, allocations: 192.6 kB / 381.3 MB, free: 42.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003165/0.3002, allocations: 394.8 kB / 381.7 MB, free: 41.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.3002, allocations: 1.312 kB / 381.7 MB, free: 41.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3002, allocations: 0 / 381.7 MB, free: 41.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.3002, allocations: 0 / 381.7 MB, free: 41.73 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.0009142/0.3011, allocations: 0.6031 MB / 382.3 MB, free: 41.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.3012, allocations: 8.5 kB / 382.3 MB, free: 41.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.857e-05/0.3013, allocations: 40.84 kB / 382.4 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003042/0.3016, allocations: 278.3 kB / 382.6 MB, free: 40.9 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.953e-05/0.3017, allocations: 79.53 kB / 382.7 MB, free: 40.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.338e-05/0.3018, allocations: 33.12 kB / 382.7 MB, free: 40.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005506/0.3023, allocations: 341.9 kB / 383.1 MB, free: 40.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.3023, allocations: 1.125 kB / 383.1 MB, free: 40.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.257e-05/0.3024, allocations: 10.78 kB / 383.1 MB, free: 40.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.577e-05/0.3024, allocations: 12.55 kB / 383.1 MB, free: 40.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004797/0.3029, allocations: 223.3 kB / 383.3 MB, free: 40.47 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001676/0.3046, allocations: 1.39 MB / 384.7 MB, free: 39.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003306/0.3049, allocations: 164.6 kB / 384.9 MB, free: 39.17 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.3051, allocations: 93.03 kB / 385 MB, free: 39.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.3051, allocations: 3.406 kB / 385 MB, free: 39.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003057/0.3054, allocations: 160.2 kB / 385.1 MB, free: 38.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 2.144e-06/0.3054, allocations: 0 / 385.1 MB, free: 38.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001087/0.3065, allocations: 420.7 kB / 385.5 MB, free: 38.72 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.3066, allocations: 110 kB / 385.6 MB, free: 38.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002772/0.3069, allocations: 260.6 kB / 385.9 MB, free: 38.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/0.3069, allocations: 35.67 kB / 385.9 MB, free: 38.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.307, allocations: 205.7 kB / 386.1 MB, free: 38.19 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.592e-05/0.3071, allocations: 72.27 kB / 386.2 MB, free: 38.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.364e-05/0.3071, allocations: 9.031 kB / 386.2 MB, free: 38.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.824e-05/0.3072, allocations: 337.3 kB / 386.5 MB, free: 37.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001606/0.3073, allocations: 73.84 kB / 386.6 MB, free: 37.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002118/0.3076, allocations: 187 kB / 386.8 MB, free: 37.58 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003109/0.3079, allocations: 237.2 kB / 387 MB, free: 37.4 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3079, allocations: 1.562 kB / 387 MB, free: 37.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006643/0.3086, allocations: 354.2 kB / 387.4 MB, free: 37.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.3086, allocations: 6.375 kB / 387.4 MB, free: 37.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.3086, allocations: 2.469 kB / 387.4 MB, free: 37.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002571/0.3089, allocations: 62 kB / 387.4 MB, free: 37.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.3091, allocations: 61.31 kB / 387.5 MB, free: 37.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009571/0.3101, allocations: 1.415 MB / 388.9 MB, free: 35.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002557/0.3104, allocations: 51.77 kB / 389 MB, free: 35.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.155e-05/0.3104, allocations: 12 kB / 389 MB, free: 35.57 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 (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.0001286/0.3105, allocations: 156.5 kB / 389.1 MB, free: 35.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.056e-05/0.3106, allocations: 27.72 kB / 389.2 MB, free: 35.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.855e-05/0.3106, allocations: 26.17 kB / 389.2 MB, free: 35.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.3106, allocations: 4 kB / 389.2 MB, free: 35.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.3106, allocations: 3.938 kB / 389.2 MB, free: 35.35 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.3107, allocations: 4 kB / 389.2 MB, free: 35.35 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000284/0.3109, allocations: 349.2 kB / 389.5 MB, free: 34.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.311, allocations: 3.938 kB / 389.5 MB, free: 34.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001707/0.3111, allocations: 31.98 kB / 389.6 MB, free: 34.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001582/0.3113, allocations: 52.81 kB / 389.6 MB, free: 34.87 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.3113, allocations: 8 kB / 389.6 MB, free: 34.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007473/0.3121, allocations: 1.323 MB / 390.9 MB, free: 33.4 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3121, allocations: 0 / 390.9 MB, free: 33.4 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005727/0.3127, allocations: 368.1 kB / 391.3 MB, free: 33.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.811e-05/0.3128, allocations: 116.8 kB / 391.4 MB, free: 32.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.505e-05/0.3128, allocations: 4 kB / 391.4 MB, free: 32.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/0.313, allocations: 27.98 kB / 391.5 MB, free: 32.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.586e-05/0.3131, allocations: 32.02 kB / 391.5 MB, free: 32.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.3131, allocations: 4 kB / 391.5 MB, free: 32.82 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001357/0.3132, allocations: 186 kB / 391.7 MB, free: 32.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3132, allocations: 0 / 391.7 MB, free: 32.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003491/0.3136, allocations: 87.75 kB / 391.8 MB, free: 32.55 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 (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.0001306/0.3137, allocations: 115.2 kB / 391.9 MB, free: 32.43 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005049/0.3142, allocations: 314.5 kB / 392.2 MB, free: 32.11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3143, allocations: 0 / 392.2 MB, free: 32.11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002372/0.3145, allocations: 198.6 kB / 392.4 MB, free: 31.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.3148, allocations: 33.17 kB / 392.4 MB, free: 31.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.3161, allocations: 0.8649 MB / 393.3 MB, free: 30.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001717/0.3163, allocations: 0.7677 MB / 394 MB, free: 30.19 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001108/0.3164, allocations: 30.28 kB / 394.1 MB, free: 30.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.831e-05/0.3164, allocations: 19.44 kB / 394.1 MB, free: 30.14 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.3164, allocations: 0 / 394.1 MB, free: 30.14 MB / 298.7 MB Notification: Performance of Templates: time 0.005414/0.3219, allocations: 2.79 MB / 396.9 MB, free: 27.36 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches