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.001354/0.001354, allocations: 107.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001523/0.001523, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 227.4 MB / 246.4 MB, free: 9.062 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001446, allocations: 57.84 kB / 306.6 MB, free: 0.5938 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.124, allocations: 50.53 MB / 357.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005636/0.1297, allocations: 3.197 MB / 360.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001957/0.1317, allocations: 0.8062 MB / 361.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003974/0.1321, allocations: 8 kB / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002907/0.1325, allocations: 43.67 kB / 361.1 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003549/0.1329, allocations: 95.22 kB / 361.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005008/0.1334, allocations: 99.91 kB / 361.3 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005837/0.134, allocations: 414.2 kB / 361.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002983/0.1343, allocations: 143.7 kB / 361.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003694/0.1347, allocations: 163.4 kB / 362 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003113/0.135, allocations: 171.2 kB / 362.2 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.548e-05/0.1351, allocations: 36 kB / 362.2 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.1352, allocations: 44 kB / 362.3 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.501e-05/0.1353, allocations: 83.62 kB / 362.4 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002377/0.1355, allocations: 187.1 kB / 362.5 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005382/0.1361, allocations: 422.8 kB / 363 MB, free: 8.148 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.1361, allocations: 4 kB / 363 MB, free: 8.145 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1361, allocations: 0 / 363 MB, free: 8.145 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.354e-05/0.1361, allocations: 0 / 363 MB, free: 8.145 MB / 302.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.001389/0.1375, allocations: 0.6586 MB / 363.6 MB, free: 7.434 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/0.1376, allocations: 12.03 kB / 363.6 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001173/0.1377, allocations: 78.66 kB / 363.7 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002634/0.138, allocations: 44.47 kB / 363.8 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004523/0.1384, allocations: 289.2 kB / 364 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.395e-05/0.1385, allocations: 76.62 kB / 364.1 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.677e-05/0.1386, allocations: 32.38 kB / 364.1 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008086/0.1394, allocations: 342.7 kB / 364.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.1395, allocations: 0 / 364.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.29e-05/0.1396, allocations: 16 kB / 364.5 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.1396, allocations: 8 kB / 364.5 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006246/0.1402, allocations: 222.4 kB / 364.7 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002492/0.1427, allocations: 1.372 MB / 366.1 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004438/0.1432, allocations: 166.5 kB / 366.3 MB, free: 4.621 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001896/0.1434, allocations: 88.83 kB / 366.3 MB, free: 4.531 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.569e-05/0.1434, allocations: 3.984 kB / 366.3 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004214/0.1439, allocations: 162.8 kB / 366.5 MB, free: 4.348 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.154e-06/0.1439, allocations: 0 / 366.5 MB, free: 4.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001448/0.1454, allocations: 401.2 kB / 366.9 MB, free: 3.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.553e-05/0.1455, allocations: 106.8 kB / 367 MB, free: 3.801 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002994/0.1458, allocations: 258.6 kB / 367.3 MB, free: 3.535 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.129e-05/0.1458, allocations: 33.7 kB / 367.3 MB, free: 3.496 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/0.146, allocations: 211.8 kB / 367.5 MB, free: 3.285 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.237e-05/0.1461, allocations: 71 kB / 367.6 MB, free: 3.215 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001751/0.1463, allocations: 66.03 kB / 367.6 MB, free: 3.145 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1464, allocations: 338.8 kB / 368 MB, free: 2.805 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.1466, allocations: 72.62 kB / 368 MB, free: 2.734 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002392/0.1468, allocations: 181.2 kB / 368.2 MB, free: 2.516 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004356/0.1473, allocations: 233.4 kB / 368.4 MB, free: 2.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.1473, allocations: 3.938 kB / 368.4 MB, free: 2.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007963/0.1481, allocations: 348.1 kB / 368.8 MB, free: 1.902 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.1482, allocations: 4 kB / 368.8 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.1482, allocations: 4 kB / 368.8 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003659/0.1486, allocations: 61.16 kB / 368.8 MB, free: 1.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002765/0.1488, allocations: 59.91 kB / 368.9 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001854/0.1507, allocations: 1.568 MB / 370.5 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003689/0.1511, allocations: 43.8 kB / 370.5 MB, free: 24 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.208e-05/0.1512, allocations: 16 kB / 370.5 MB, free: 8 kB / 302.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.1862/0.3373, allocations: 152.2 kB / 370.7 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.309e-05/0.3374, allocations: 28.12 kB / 370.7 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.048e-05/0.3375, allocations: 31.52 kB / 370.7 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3375, allocations: 6.219 kB / 370.7 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3375, allocations: 1.438 kB / 370.7 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.3375, allocations: 4.375 kB / 370.7 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004011/0.3379, allocations: 336.4 kB / 371.1 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.3379, allocations: 0.7031 kB / 371.1 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002553/0.3382, allocations: 38.53 kB / 371.1 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002384/0.3385, allocations: 51.59 kB / 371.2 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.3385, allocations: 9.266 kB / 371.2 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001009/0.3395, allocations: 1.424 MB / 372.6 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3395, allocations: 0.5625 kB / 372.6 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007326/0.3403, allocations: 347.5 kB / 372.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.953e-05/0.3404, allocations: 114.2 kB / 373 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.11e-05/0.3404, allocations: 6.703 kB / 373.1 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.3406, allocations: 22.62 kB / 373.1 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.3407, allocations: 36.75 kB / 373.1 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.932e-05/0.3407, allocations: 6.375 kB / 373.1 MB, free: 18.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000191/0.3409, allocations: 183.6 kB / 373.3 MB, free: 17.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3409, allocations: 0 / 373.3 MB, free: 17.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004514/0.3414, allocations: 89.61 kB / 373.4 MB, free: 17.98 MB / 302.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.0009276/0.3423, allocations: 0.8834 MB / 374.3 MB, free: 17.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006415/0.343, allocations: 330.8 kB / 374.6 MB, free: 17.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.343, allocations: 3.828 kB / 374.6 MB, free: 17.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002981/0.3433, allocations: 199.5 kB / 374.8 MB, free: 17.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003054/0.3436, allocations: 38.62 kB / 374.8 MB, free: 17.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004145/0.3478, allocations: 3.045 MB / 377.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.348, allocations: 0.7703 MB / 378.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001409/0.3482, allocations: 29.31 kB / 378.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.3483, allocations: 94.44 kB / 378.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3483, allocations: 0 / 378.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02465/0.373, allocations: 5.728 MB / 384.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001835/0.3732, allocations: 247.2 kB / 384.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.18/2.553, allocations: 0 / 384.7 MB, free: 13.44 MB / 302.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.0.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