Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 101.5 kB / 18.4 MB, free: 4.699 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.001307/0.001307, allocations: 187.1 kB / 19.33 MB, free: 3.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 47.94 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1117, allocations: 46.61 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005341/0.1171, allocations: 3.097 MB / 378.9 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001914/0.1191, allocations: 0.7951 MB / 379.7 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003782/0.1195, allocations: 8 kB / 379.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002849/0.1198, allocations: 63.42 kB / 379.8 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003942/0.1202, allocations: 103 kB / 379.9 MB, free: 500 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004883/0.1207, allocations: 111.8 kB / 380 MB, free: 388 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2473/0.368, allocations: 413 kB / 380.4 MB, free: 10.4 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003562/0.3684, allocations: 140.6 kB / 380.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003507/0.3688, allocations: 157.1 kB / 380.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002382/0.369, allocations: 178.5 kB / 380.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.954e-05/0.3691, allocations: 36.78 kB / 380.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.294e-05/0.3692, allocations: 35.09 kB / 380.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.954e-05/0.3693, allocations: 76.3 kB / 381 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001673/0.3694, allocations: 186.9 kB / 381.2 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004802/0.3699, allocations: 422.5 kB / 381.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3699, allocations: 0 / 381.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3699, allocations: 0 / 381.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.3699, allocations: 7.062 kB / 381.6 MB, free: 10.23 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.0009621/0.3709, allocations: 0.6465 MB / 382.3 MB, free: 9.766 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.371, allocations: 17.58 kB / 382.3 MB, free: 9.762 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.525e-05/0.3711, allocations: 40.56 kB / 382.3 MB, free: 9.742 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003848/0.3714, allocations: 279.9 kB / 382.6 MB, free: 9.516 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.914e-05/0.3715, allocations: 78.81 kB / 382.7 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.695e-05/0.3716, allocations: 32.03 kB / 382.7 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006058/0.3722, allocations: 342 kB / 383 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.3722, allocations: 0 / 383 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.572e-05/0.3723, allocations: 16.98 kB / 383 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.3723, allocations: 8.25 kB / 383.1 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004728/0.3728, allocations: 219.7 kB / 383.3 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.3746, allocations: 1.358 MB / 384.6 MB, free: 8.562 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003262/0.3749, allocations: 166.1 kB / 384.8 MB, free: 8.488 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.3751, allocations: 93.59 kB / 384.9 MB, free: 8.445 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.3751, allocations: 6.156 kB / 384.9 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000271/0.3754, allocations: 151.4 kB / 385 MB, free: 8.344 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.3754, allocations: 0 / 385 MB, free: 8.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001107/0.3765, allocations: 401.2 kB / 385.4 MB, free: 8.125 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/0.3766, allocations: 113.9 kB / 385.5 MB, free: 7.992 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002867/0.3769, allocations: 258.9 kB / 385.8 MB, free: 7.844 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.3769, allocations: 30.89 kB / 385.8 MB, free: 7.809 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.377, allocations: 215.9 kB / 386 MB, free: 7.629 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.076e-05/0.3771, allocations: 71.23 kB / 386.1 MB, free: 7.578 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.233e-05/0.3772, allocations: 62.47 kB / 386.2 MB, free: 7.539 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.054e-05/0.3773, allocations: 337 kB / 386.5 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001638/0.3775, allocations: 81.34 kB / 386.6 MB, free: 7.188 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000223/0.3777, allocations: 178.2 kB / 386.7 MB, free: 7.039 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003401/0.378, allocations: 234.5 kB / 387 MB, free: 6.875 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.3781, allocations: 5.031 kB / 387 MB, free: 6.871 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006921/0.3788, allocations: 341.2 kB / 387.3 MB, free: 6.734 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.3788, allocations: 11.56 kB / 387.3 MB, free: 6.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.3788, allocations: 2.562 kB / 387.3 MB, free: 6.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002777/0.3791, allocations: 54.81 kB / 387.4 MB, free: 6.715 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002449/0.3793, allocations: 64.39 kB / 387.4 MB, free: 6.711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.3804, allocations: 1.568 MB / 389 MB, free: 5.156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000281/0.3807, allocations: 49.77 kB / 389.1 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.523e-05/0.3808, allocations: 12.39 kB / 389.1 MB, free: 5.129 MB / 318.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.0001372/0.3809, allocations: 146.6 kB / 389.2 MB, free: 4.996 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.98e-05/0.3809, allocations: 28.03 kB / 389.2 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.843e-05/0.381, allocations: 38.78 kB / 389.3 MB, free: 4.949 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.381, allocations: 6.562 kB / 389.3 MB, free: 4.949 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.381, allocations: 1.375 kB / 389.3 MB, free: 4.949 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.381, allocations: 1.266 kB / 389.3 MB, free: 4.949 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003137/0.3813, allocations: 336.8 kB / 389.6 MB, free: 4.695 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3814, allocations: 4.547 kB / 389.6 MB, free: 4.691 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001831/0.3815, allocations: 38.58 kB / 389.7 MB, free: 4.688 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001794/0.3817, allocations: 52.41 kB / 389.7 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.3818, allocations: 10.08 kB / 389.7 MB, free: 4.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008792/0.3826, allocations: 1.414 MB / 391.1 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3827, allocations: 2.906 kB / 391.1 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006536/0.3833, allocations: 351.9 kB / 391.5 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.853e-05/0.3834, allocations: 116.5 kB / 391.6 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.22e-05/0.3835, allocations: 8.734 kB / 391.6 MB, free: 2.945 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.3837, allocations: 18.88 kB / 391.6 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.3838, allocations: 31.91 kB / 391.6 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.3838, allocations: 5.125 kB / 391.7 MB, free: 2.934 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001726/0.384, allocations: 190.1 kB / 391.8 MB, free: 2.824 MB / 318.1 MB Notification: Performance of sort global known variables: time 3e-07/0.384, allocations: 0 / 391.8 MB, free: 2.824 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004385/0.3844, allocations: 89.47 kB / 391.9 MB, free: 2.805 MB / 318.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.0001293/0.3846, allocations: 106.2 kB / 392 MB, free: 2.711 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006177/0.3852, allocations: 316.2 kB / 392.3 MB, free: 2.543 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3852, allocations: 1.5 kB / 392.3 MB, free: 2.543 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002896/0.3855, allocations: 201.8 kB / 392.5 MB, free: 2.402 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.3858, allocations: 36.91 kB / 392.6 MB, free: 2.387 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.3874, allocations: 0.6933 MB / 393.3 MB, free: 1.969 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.3877, allocations: 0.7709 MB / 394 MB, free: 1.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.76e-05/0.3878, allocations: 23.61 kB / 394.1 MB, free: 1.262 MB / 318.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3878, allocations: 0.75 kB / 394.1 MB, free: 1.262 MB / 318.1 MB Notification: Performance of Templates: time 0.009617/0.3974, allocations: 4.626 MB / 398.7 MB, free: 0.7812 MB / 318.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches