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.001596/0.001595, allocations: 184.4 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.004/2.004, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001167/0.001167, allocations: 96.59 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003992/0.0003994, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3318, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003259/0.3351, allocations: 2.276 MB / 376.9 MB, free: 43.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001817/0.337, allocations: 0.7515 MB / 377.7 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002027/0.3372, allocations: 5.219 kB / 377.7 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.085e-05/0.3373, allocations: 36.03 kB / 377.7 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000336/0.3377, allocations: 108.7 kB / 377.8 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003814/0.3381, allocations: 73.73 kB / 377.9 MB, free: 42.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000417/0.3385, allocations: 257.2 kB / 378.1 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002427/0.3387, allocations: 90.42 kB / 378.2 MB, free: 42.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/0.3389, allocations: 117.4 kB / 378.3 MB, free: 42.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002173/0.3391, allocations: 134.5 kB / 378.5 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.327e-05/0.3392, allocations: 15.84 kB / 378.5 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.223e-05/0.3393, allocations: 17.16 kB / 378.5 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.298e-05/0.3394, allocations: 56.81 kB / 378.5 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.786e-05/0.3395, allocations: 80.45 kB / 378.6 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003169/0.3398, allocations: 258.5 kB / 378.9 MB, free: 42.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.686e-06/0.3398, allocations: 0 / 378.9 MB, free: 42.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3398, allocations: 0 / 378.9 MB, free: 42.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.3398, allocations: 0 / 378.9 MB, free: 42.22 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.001204/0.341, allocations: 0.5717 MB / 379.4 MB, free: 41.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.3411, allocations: 8.938 kB / 379.5 MB, free: 41.71 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.566e-05/0.3412, allocations: 64.5 kB / 379.5 MB, free: 41.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.386e-05/0.3413, allocations: 33.44 kB / 379.6 MB, free: 41.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003862/0.3417, allocations: 255.8 kB / 379.8 MB, free: 41.37 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.101e-05/0.3418, allocations: 77.69 kB / 379.9 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.976e-05/0.3419, allocations: 27.72 kB / 379.9 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006737/0.3426, allocations: 300.6 kB / 380.2 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.3426, allocations: 1.125 kB / 380.2 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.023e-05/0.3426, allocations: 10.28 kB / 380.2 MB, free: 41.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.3427, allocations: 7.25 kB / 380.2 MB, free: 41.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005364/0.3432, allocations: 188.3 kB / 380.4 MB, free: 40.99 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002304/0.3455, allocations: 1.148 MB / 381.5 MB, free: 39.99 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004439/0.346, allocations: 148.9 kB / 381.7 MB, free: 39.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.3461, allocations: 2.75 kB / 381.7 MB, free: 39.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003716/0.3464, allocations: 167 kB / 381.9 MB, free: 39.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 2.795e-06/0.3465, allocations: 0 / 381.9 MB, free: 39.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0016/0.3481, allocations: 392.3 kB / 382.2 MB, free: 39.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.33e-05/0.3481, allocations: 110.2 kB / 382.4 MB, free: 39.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003014/0.3485, allocations: 225.9 kB / 382.6 MB, free: 39.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.3485, allocations: 32.36 kB / 382.6 MB, free: 39.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.3486, allocations: 253.4 kB / 382.9 MB, free: 38.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.865e-05/0.3487, allocations: 60.53 kB / 382.9 MB, free: 38.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.873e-05/0.3487, allocations: 5.312 kB / 382.9 MB, free: 38.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.646e-05/0.3488, allocations: 325.3 kB / 383.2 MB, free: 38.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002/0.349, allocations: 61.38 kB / 383.3 MB, free: 38.54 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002584/0.3493, allocations: 144.8 kB / 383.4 MB, free: 38.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002309/0.3495, allocations: 79.25 kB / 383.5 MB, free: 38.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.3496, allocations: 1.125 kB / 383.5 MB, free: 38.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007031/0.3503, allocations: 252.5 kB / 383.8 MB, free: 38.24 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.3504, allocations: 7.625 kB / 383.8 MB, free: 38.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.3504, allocations: 10.23 kB / 383.8 MB, free: 38.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000418/0.3508, allocations: 60.41 kB / 383.8 MB, free: 38.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003745/0.3512, allocations: 60.22 kB / 383.9 MB, free: 38.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001502/0.3527, allocations: 1.407 MB / 385.3 MB, free: 36.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004439/0.3532, allocations: 46.77 kB / 385.3 MB, free: 36.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.084e-05/0.3532, allocations: 7.594 kB / 385.4 MB, free: 36.71 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.0002076/0.3535, allocations: 160 kB / 385.5 MB, free: 36.56 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.212e-05/0.3535, allocations: 23.28 kB / 385.5 MB, free: 36.55 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.154e-05/0.3536, allocations: 27.3 kB / 385.6 MB, free: 36.53 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.3536, allocations: 2.031 kB / 385.6 MB, free: 36.53 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3536, allocations: 5.031 kB / 385.6 MB, free: 36.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.3537, allocations: 0 / 385.6 MB, free: 36.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004178/0.3541, allocations: 321.4 kB / 385.9 MB, free: 36.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.3541, allocations: 3.953 kB / 385.9 MB, free: 36.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003232/0.3544, allocations: 35.42 kB / 385.9 MB, free: 36.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003061/0.3548, allocations: 56.62 kB / 386 MB, free: 36.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.604e-05/0.3548, allocations: 6.406 kB / 386 MB, free: 36.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001282/0.3561, allocations: 1.327 MB / 387.3 MB, free: 34.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3561, allocations: 1.125 kB / 387.3 MB, free: 34.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000983/0.3571, allocations: 324.5 kB / 387.6 MB, free: 34.6 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001457/0.3573, allocations: 121.6 kB / 387.7 MB, free: 34.47 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.437e-05/0.3573, allocations: 2.438 kB / 387.7 MB, free: 34.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003273/0.3577, allocations: 24.61 kB / 387.8 MB, free: 34.46 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.3578, allocations: 32.69 kB / 387.8 MB, free: 34.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.626e-05/0.3579, allocations: 7.5 kB / 387.8 MB, free: 34.44 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001961/0.3581, allocations: 162.5 kB / 388 MB, free: 34.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.3581, allocations: 0 / 388 MB, free: 34.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005521/0.3586, allocations: 82.94 kB / 388 MB, free: 34.3 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.001281/0.3599, allocations: 0.8754 MB / 388.9 MB, free: 33.55 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000773/0.3607, allocations: 289.2 kB / 389.2 MB, free: 33.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3608, allocations: 0 / 389.2 MB, free: 33.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003907/0.3612, allocations: 193.3 kB / 389.4 MB, free: 33.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004179/0.3616, allocations: 29.17 kB / 389.4 MB, free: 33.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004061/0.3657, allocations: 2.724 MB / 392.1 MB, free: 30.43 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002198/0.3659, allocations: 0.7635 MB / 392.9 MB, free: 29.64 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001694/0.3661, allocations: 87.34 kB / 393 MB, free: 29.56 MB / 298.7 MB Notification: Performance of SimCode: time 1.032e-06/0.3661, allocations: 4 kB / 393 MB, free: 29.55 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.807/3.174, allocations: 5.226 MB / 398.2 MB, free: 24.33 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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat