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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 106.5 kB / 17.73 MB, free: 5.32 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.001289/0.001289, allocations: 187 kB / 18.67 MB, free: 4.387 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.485/1.485, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001732/0.001732, allocations: 51.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08943/0.09117, allocations: 46.61 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004261/0.09547, allocations: 3.1 MB / 377.8 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001307/0.0968, allocations: 0.7913 MB / 378.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.09695, allocations: 4 kB / 378.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000178/0.09714, allocations: 63.36 kB / 378.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.09733, allocations: 99.06 kB / 378.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003586/0.09769, allocations: 115.7 kB / 378.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004573/0.09816, allocations: 418 kB / 379.2 MB, free: 476 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002769/0.09845, allocations: 151.7 kB / 379.4 MB, free: 320 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002046/0.09866, allocations: 155.4 kB / 379.5 MB, free: 164 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1668/0.2655, allocations: 167.7 kB / 379.7 MB, free: 9.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001573/0.2657, allocations: 35.03 kB / 379.7 MB, free: 9.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001053/0.2658, allocations: 36.95 kB / 379.8 MB, free: 9.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.565e-05/0.2659, allocations: 81.73 kB / 379.8 MB, free: 9.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001965/0.2661, allocations: 184.5 kB / 380 MB, free: 9.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005122/0.2666, allocations: 426 kB / 380.4 MB, free: 9.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2666, allocations: 0 / 380.4 MB, free: 9.422 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2666, allocations: 1.25 kB / 380.4 MB, free: 9.422 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.2666, allocations: 0 / 380.4 MB, free: 9.422 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.0009481/0.2676, allocations: 0.659 MB / 381.1 MB, free: 8.953 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.2676, allocations: 10.7 kB / 381.1 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.511e-05/0.2677, allocations: 69.52 kB / 381.2 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.584e-05/0.2678, allocations: 42.03 kB / 381.2 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000368/0.2682, allocations: 283.5 kB / 381.5 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.604e-05/0.2682, allocations: 81.77 kB / 381.6 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.875e-05/0.2683, allocations: 29.34 kB / 381.6 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005287/0.2688, allocations: 340.7 kB / 381.9 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.2689, allocations: 0 / 381.9 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.142e-05/0.2689, allocations: 18.23 kB / 382 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.2689, allocations: 8.281 kB / 382 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004533/0.2694, allocations: 222.9 kB / 382.2 MB, free: 8.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001731/0.2711, allocations: 1.354 MB / 383.5 MB, free: 7.742 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003088/0.2714, allocations: 173 kB / 383.7 MB, free: 7.715 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.2716, allocations: 89.03 kB / 383.8 MB, free: 7.703 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.2716, allocations: 2.531 kB / 383.8 MB, free: 7.703 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002568/0.2719, allocations: 162.6 kB / 383.9 MB, free: 7.625 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.452e-06/0.2719, allocations: 0 / 383.9 MB, free: 7.625 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.00105/0.2729, allocations: 398.3 kB / 384.3 MB, free: 7.477 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.005e-05/0.273, allocations: 115.2 kB / 384.5 MB, free: 7.344 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/0.2733, allocations: 265 kB / 384.7 MB, free: 7.234 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.2733, allocations: 31.95 kB / 384.7 MB, free: 7.203 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.2734, allocations: 210.5 kB / 384.9 MB, free: 7.062 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.044e-05/0.2735, allocations: 74.56 kB / 385 MB, free: 7.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.454e-05/0.2736, allocations: 61.94 kB / 385.1 MB, free: 7 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.654e-05/0.2737, allocations: 335.9 kB / 385.4 MB, free: 6.688 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001606/0.2738, allocations: 80.11 kB / 385.5 MB, free: 6.684 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001988/0.274, allocations: 182.9 kB / 385.7 MB, free: 6.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003378/0.2744, allocations: 237.1 kB / 385.9 MB, free: 6.465 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.2744, allocations: 0 / 385.9 MB, free: 6.465 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006477/0.2751, allocations: 347.9 kB / 386.2 MB, free: 6.348 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.2751, allocations: 5.344 kB / 386.2 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.2751, allocations: 2.656 kB / 386.2 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002632/0.2754, allocations: 59.78 kB / 386.3 MB, free: 6.324 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002429/0.2756, allocations: 60.55 kB / 386.4 MB, free: 6.324 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001018/0.2767, allocations: 1.574 MB / 387.9 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000235/0.2769, allocations: 43.16 kB / 388 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.429e-05/0.2769, allocations: 15.39 kB / 388 MB, free: 4.73 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.0001169/0.2771, allocations: 157 kB / 388.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.726e-05/0.2771, allocations: 29.5 kB / 388.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.745e-05/0.2772, allocations: 36.45 kB / 388.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.2772, allocations: 6.094 kB / 388.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.2772, allocations: 0 / 388.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.2772, allocations: 2.641 kB / 388.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003081/0.2775, allocations: 337.1 kB / 388.5 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.2775, allocations: 0 / 388.5 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001862/0.2777, allocations: 46.09 kB / 388.6 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001761/0.2779, allocations: 52.2 kB / 388.6 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.2779, allocations: 6.75 kB / 388.6 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007967/0.2787, allocations: 1.419 MB / 390.1 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.2787, allocations: 0.5156 kB / 390.1 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006451/0.2794, allocations: 355.9 kB / 390.4 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.712e-05/0.2795, allocations: 121.1 kB / 390.5 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.562e-05/0.2795, allocations: 1.891 kB / 390.5 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.2797, allocations: 25.05 kB / 390.6 MB, free: 2.531 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.33e-05/0.2798, allocations: 31.39 kB / 390.6 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.2798, allocations: 8.812 kB / 390.6 MB, free: 2.52 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001453/0.2799, allocations: 182.7 kB / 390.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2799, allocations: 0 / 390.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003603/0.2803, allocations: 88.94 kB / 390.9 MB, free: 2.398 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.0008978/0.2812, allocations: 0.8842 MB / 391.7 MB, free: 1.691 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006157/0.2818, allocations: 321.6 kB / 392.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.2819, allocations: 0 / 392.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002793/0.2821, allocations: 200.7 kB / 392.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.2824, allocations: 33.17 kB / 392.3 MB, free: 1.367 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00394/0.2864, allocations: 2.917 MB / 395.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004232/0.2868, allocations: 0.7703 MB / 396 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001084/0.2869, allocations: 25.03 kB / 396 MB, free: 14.69 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.2871, allocations: 94.58 kB / 396.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2871, allocations: 4 kB / 396.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03256/0.3196, allocations: 6.046 MB / 402.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.6, allocations: 13.2 kB / 402.2 MB, free: 13.26 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > 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