Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008654/0.0008654, allocations: 176.1 kB / 16.72 MB, free: 5.082 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.229/1.229, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0007352/0.0007354, allocations: 90.34 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002737/0.0002737, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1974/0.1977, allocations: 47.57 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002266/0.2, allocations: 2.402 MB / 377.6 MB, free: 43.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.2013, allocations: 0.7355 MB / 378.3 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.2014, allocations: 8 kB / 378.3 MB, free: 42.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.2016, allocations: 36.53 kB / 378.4 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001492/0.2017, allocations: 78 kB / 378.4 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002688/0.202, allocations: 77.11 kB / 378.5 MB, free: 42.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002958/0.2023, allocations: 348.9 kB / 378.9 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001926/0.2025, allocations: 102.1 kB / 379 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.2026, allocations: 115.3 kB / 379.1 MB, free: 42.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001588/0.2028, allocations: 130.2 kB / 379.2 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.271e-05/0.2029, allocations: 17.16 kB / 379.2 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.764e-05/0.2029, allocations: 16.62 kB / 379.2 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.168e-05/0.203, allocations: 48.77 kB / 379.3 MB, free: 42.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.2031, allocations: 173.5 kB / 379.5 MB, free: 42.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001935/0.2033, allocations: 256.1 kB / 379.7 MB, free: 42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2033, allocations: 0 / 379.7 MB, free: 42 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.2033, allocations: 0.9375 kB / 379.7 MB, free: 42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.2033, allocations: 0 / 379.7 MB, free: 42 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.0008122/0.2042, allocations: 0.5606 MB / 380.3 MB, free: 41.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.2042, allocations: 14.28 kB / 380.3 MB, free: 41.49 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.946e-05/0.2043, allocations: 68.69 kB / 380.3 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.252e-05/0.2043, allocations: 34.16 kB / 380.4 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002675/0.2046, allocations: 256.5 kB / 380.6 MB, free: 41.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.223e-05/0.2047, allocations: 81.89 kB / 380.7 MB, free: 41.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.616e-05/0.2047, allocations: 35.56 kB / 380.7 MB, free: 41.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000438/0.2052, allocations: 292.5 kB / 381 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.2052, allocations: 4 kB / 381 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.753e-05/0.2052, allocations: 14.52 kB / 381 MB, free: 40.85 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.2053, allocations: 6.875 kB / 381.1 MB, free: 40.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003058/0.2056, allocations: 188.7 kB / 381.2 MB, free: 40.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.2071, allocations: 1.144 MB / 382.4 MB, free: 39.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002795/0.2074, allocations: 164.5 kB / 382.5 MB, free: 39.67 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001245/0.2075, allocations: 75.25 kB / 382.6 MB, free: 39.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.2075, allocations: 1.344 kB / 382.6 MB, free: 39.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002644/0.2078, allocations: 166.5 kB / 382.8 MB, free: 39.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 2.375e-06/0.2078, allocations: 1.031 kB / 382.8 MB, free: 39.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.00101/0.2088, allocations: 390.7 kB / 383.2 MB, free: 39.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.2089, allocations: 106.1 kB / 383.3 MB, free: 39.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002008/0.2091, allocations: 230 kB / 383.5 MB, free: 38.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.2091, allocations: 31.7 kB / 383.5 MB, free: 38.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.8e-05/0.2092, allocations: 179.1 kB / 383.7 MB, free: 38.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.572e-05/0.2093, allocations: 68.77 kB / 383.8 MB, free: 38.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.378e-05/0.2093, allocations: 9.469 kB / 383.8 MB, free: 38.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.753e-05/0.2093, allocations: 334.7 kB / 384.1 MB, free: 38.35 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.2095, allocations: 69.41 kB / 384.2 MB, free: 38.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.2096, allocations: 141 kB / 384.3 MB, free: 38.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002286/0.2098, allocations: 187.2 kB / 384.5 MB, free: 38.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.2099, allocations: 5.188 kB / 384.5 MB, free: 38.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004006/0.2103, allocations: 269.6 kB / 384.8 MB, free: 37.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.2103, allocations: 10.08 kB / 384.8 MB, free: 37.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.2103, allocations: 2.656 kB / 384.8 MB, free: 37.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002647/0.2106, allocations: 60.75 kB / 384.8 MB, free: 37.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002034/0.2108, allocations: 47.36 kB / 384.9 MB, free: 37.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009922/0.2118, allocations: 1.409 MB / 386.3 MB, free: 36.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002452/0.212, allocations: 38.58 kB / 386.3 MB, free: 36.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.243e-05/0.2121, allocations: 16.66 kB / 386.3 MB, free: 36.38 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 (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.0001414/0.2122, allocations: 143.2 kB / 386.5 MB, free: 36.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.022e-05/0.2123, allocations: 27.81 kB / 386.5 MB, free: 36.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.962e-05/0.2123, allocations: 26.64 kB / 386.5 MB, free: 36.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.2123, allocations: 1.844 kB / 386.5 MB, free: 36.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2123, allocations: 0.9375 kB / 386.5 MB, free: 36.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.2124, allocations: 3.984 kB / 386.5 MB, free: 36.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003072/0.2127, allocations: 325.5 kB / 386.9 MB, free: 35.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.2127, allocations: 11.94 kB / 386.9 MB, free: 35.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001638/0.2129, allocations: 31.2 kB / 386.9 MB, free: 35.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001816/0.213, allocations: 57.83 kB / 387 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.2131, allocations: 1.094 kB / 387 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007766/0.2139, allocations: 1.322 MB / 388.3 MB, free: 34.49 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2139, allocations: 4.156 kB / 388.3 MB, free: 34.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000566/0.2144, allocations: 332.3 kB / 388.6 MB, free: 34.28 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.712e-05/0.2145, allocations: 113.3 kB / 388.7 MB, free: 34.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.178e-05/0.2146, allocations: 2.031 kB / 388.7 MB, free: 34.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.2148, allocations: 25.14 kB / 388.7 MB, free: 34.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.278e-05/0.2149, allocations: 36.44 kB / 388.8 MB, free: 34.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.2149, allocations: 7.859 kB / 388.8 MB, free: 34.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001151/0.215, allocations: 158.5 kB / 388.9 MB, free: 34 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.215, allocations: 0 / 388.9 MB, free: 34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000383/0.2154, allocations: 78.66 kB / 389 MB, free: 33.99 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 (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.0007483/0.2161, allocations: 0.8677 MB / 389.9 MB, free: 33.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000496/0.2167, allocations: 286.5 kB / 390.2 MB, free: 32.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2167, allocations: 0 / 390.2 MB, free: 32.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002194/0.2169, allocations: 194.6 kB / 390.4 MB, free: 32.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.2172, allocations: 40.3 kB / 390.4 MB, free: 32.67 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002248/0.2195, allocations: 1.676 MB / 392.1 MB, free: 30.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001514/0.2196, allocations: 0.7635 MB / 392.8 MB, free: 30.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/0.2197, allocations: 79.41 kB / 392.9 MB, free: 30.04 MB / 298.7 MB Notification: Performance of SimCode: time 2.7e-07/0.2198, allocations: 0 / 392.9 MB, free: 30.04 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.124/3.344, allocations: 4.946 MB / 397.9 MB, free: 25.09 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches