Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001256/0.001256, allocations: 122.2 kB / 17.79 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001322, allocations: 198 kB / 18.73 MB, free: 4.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 63.88 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2485, allocations: 50.55 MB / 408.8 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004466/0.253, allocations: 3.154 MB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001409/0.2545, allocations: 0.8178 MB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.2546, allocations: 8 kB / 412.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001797/0.2548, allocations: 59.38 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001981/0.255, allocations: 107 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004126/0.2555, allocations: 123.8 kB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004648/0.2559, allocations: 418.2 kB / 413.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002665/0.2562, allocations: 139.7 kB / 413.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002769/0.2565, allocations: 163.4 kB / 413.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002532/0.2568, allocations: 175.2 kB / 414 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.719e-05/0.2568, allocations: 39.94 kB / 414 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.464e-05/0.2569, allocations: 36 kB / 414.1 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.052e-05/0.257, allocations: 83.69 kB / 414.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001983/0.2572, allocations: 187.1 kB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005074/0.2578, allocations: 429.2 kB / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.2578, allocations: 8 kB / 414.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2578, allocations: 0 / 414.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.2578, allocations: 3.938 kB / 414.8 MB, free: 11.5 MB / 334.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.00112/0.2589, allocations: 0.6506 MB / 415.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.259, allocations: 16.03 kB / 415.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.656e-05/0.2591, allocations: 70.66 kB / 415.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.2593, allocations: 60.64 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004094/0.2597, allocations: 281.4 kB / 415.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.031e-05/0.2598, allocations: 76.62 kB / 415.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.008e-05/0.2598, allocations: 32.38 kB / 415.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005776/0.2604, allocations: 346.6 kB / 416.3 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.2604, allocations: 0 / 416.3 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.147e-05/0.2605, allocations: 12 kB / 416.3 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.2605, allocations: 8 kB / 416.3 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004768/0.261, allocations: 222.5 kB / 416.5 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.2631, allocations: 1.368 MB / 417.9 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003517/0.2634, allocations: 166.5 kB / 418 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/0.2636, allocations: 84.83 kB / 418.1 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.2636, allocations: 8 kB / 418.1 MB, free: 7.887 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003/0.2639, allocations: 155 kB / 418.3 MB, free: 7.715 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.533e-06/0.264, allocations: 0 / 418.3 MB, free: 7.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001179/0.2651, allocations: 414.7 kB / 418.7 MB, free: 7.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.2653, allocations: 102.8 kB / 418.8 MB, free: 7.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003059/0.2656, allocations: 270.6 kB / 419 MB, free: 6.887 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.804e-05/0.2656, allocations: 29.7 kB / 419.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/0.2658, allocations: 208.3 kB / 419.3 MB, free: 6.645 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.697e-05/0.2659, allocations: 79.36 kB / 419.4 MB, free: 6.566 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.266, allocations: 62.03 kB / 419.4 MB, free: 6.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.2662, allocations: 334.8 kB / 419.7 MB, free: 6.164 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001725/0.2663, allocations: 76.62 kB / 419.8 MB, free: 6.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002519/0.2666, allocations: 177.5 kB / 420 MB, free: 5.871 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003831/0.267, allocations: 235.5 kB / 420.2 MB, free: 5.605 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.267, allocations: 0 / 420.2 MB, free: 5.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007014/0.2677, allocations: 348.3 kB / 420.6 MB, free: 5.258 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.2677, allocations: 4 kB / 420.6 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2678, allocations: 7.938 kB / 420.6 MB, free: 5.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002652/0.268, allocations: 61.16 kB / 420.6 MB, free: 5.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002521/0.2683, allocations: 63.91 kB / 420.7 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001521/0.2698, allocations: 1.568 MB / 422.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002609/0.2701, allocations: 47.88 kB / 422.3 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.996e-05/0.2701, allocations: 19.98 kB / 422.3 MB, free: 3.352 MB / 334.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.0001642/0.2703, allocations: 149.7 kB / 422.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.116e-05/0.2704, allocations: 27.8 kB / 422.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.471e-05/0.2704, allocations: 30.17 kB / 422.5 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.2704, allocations: 4 kB / 422.5 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.2704, allocations: 4 kB / 422.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.2704, allocations: 0 / 422.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003766/0.2708, allocations: 341.3 kB / 422.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.2708, allocations: 3.984 kB / 422.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001908/0.271, allocations: 35.98 kB / 422.9 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001919/0.2712, allocations: 60.69 kB / 423 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.2713, allocations: 7.984 kB / 423 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001284/0.2725, allocations: 1.406 MB / 424.4 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.2726, allocations: 11.92 kB / 424.4 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007337/0.2733, allocations: 349.7 kB / 424.7 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.2734, allocations: 116.9 kB / 424.9 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.928e-05/0.2735, allocations: 8 kB / 424.9 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.2737, allocations: 19.98 kB / 424.9 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.528e-05/0.2738, allocations: 27.89 kB / 424.9 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.2738, allocations: 11.98 kB / 424.9 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001843/0.274, allocations: 182 kB / 425.1 MB, free: 340 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.274, allocations: 4.062 kB / 425.1 MB, free: 336 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003809/0.2744, allocations: 91.84 kB / 425.2 MB, free: 244 kB / 334.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.001112/0.2755, allocations: 0.8982 MB / 426.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006826/0.2762, allocations: 306.7 kB / 426.4 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.2762, allocations: 0 / 426.4 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003321/0.2765, allocations: 206.6 kB / 426.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002731/0.2768, allocations: 45.12 kB / 426.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004308/0.2811, allocations: 2.914 MB / 429.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004103/0.2816, allocations: 0.7714 MB / 430.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001135/0.2817, allocations: 26.28 kB / 430.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.2818, allocations: 99.41 kB / 430.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2818, allocations: 0 / 430.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05265/0.3345, allocations: 6.059 MB / 436.5 MB, free: 4.879 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/11.97, allocations: 7.75 kB / 436.5 MB, free: 4.875 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches