Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 107.4 kB / 16.92 MB, free: 5.773 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.001652/0.001652, allocations: 191.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.533/1.533, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 42.98 kB / 300.6 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1178, allocations: 49.45 MB / 350.1 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005137/0.123, allocations: 3.119 MB / 353.2 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001699/0.1247, allocations: 0.7517 MB / 353.9 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000376/0.1251, allocations: 11.94 kB / 353.9 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002583/0.1254, allocations: 59.42 kB / 354 MB, free: 484 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003829/0.1258, allocations: 111 kB / 354.1 MB, free: 372 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005186/0.1263, allocations: 111.8 kB / 354.2 MB, free: 260 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005605/0.1269, allocations: 406.2 kB / 354.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002737/0.1272, allocations: 147.7 kB / 354.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002653/0.1275, allocations: 159.4 kB / 354.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002799/0.1277, allocations: 179.2 kB / 355.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.69e-05/0.1278, allocations: 36 kB / 355.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.2e-05/0.1279, allocations: 32 kB / 355.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.316e-05/0.128, allocations: 75.77 kB / 355.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001996/0.1282, allocations: 187.1 kB / 355.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003944/0.1286, allocations: 426.7 kB / 355.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1286, allocations: 0 / 355.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1286, allocations: 0 / 355.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.852e-05/0.1287, allocations: 0 / 355.8 MB, free: 14.63 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.001123/0.1298, allocations: 0.647 MB / 356.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.1298, allocations: 19.83 kB / 356.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.764e-05/0.1299, allocations: 40.47 kB / 356.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003592/0.1303, allocations: 285.2 kB / 356.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.66e-05/0.1304, allocations: 76.62 kB / 356.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.627e-05/0.1305, allocations: 32.38 kB / 356.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005716/0.131, allocations: 342.9 kB / 357.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.1311, allocations: 0 / 357.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.544e-05/0.1311, allocations: 12 kB / 357.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.1311, allocations: 8 kB / 357.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004347/0.1316, allocations: 222.5 kB / 357.5 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001922/0.1335, allocations: 1.36 MB / 358.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003348/0.1338, allocations: 174.5 kB / 359 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001851/0.134, allocations: 88.77 kB / 359.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/0.1341, allocations: 3.984 kB / 359.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003571/0.1344, allocations: 157.9 kB / 359.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.996e-06/0.1345, allocations: 3.984 kB / 359.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001128/0.1356, allocations: 408.5 kB / 359.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.613e-05/0.1357, allocations: 106.8 kB / 359.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002516/0.1359, allocations: 258.7 kB / 360 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.136, allocations: 37.69 kB / 360.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.1361, allocations: 195.9 kB / 360.3 MB, free: 9.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.282e-05/0.1362, allocations: 75 kB / 360.3 MB, free: 9.809 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.274e-05/0.1363, allocations: 65.86 kB / 360.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.1364, allocations: 342.8 kB / 360.7 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.1366, allocations: 72.62 kB / 360.8 MB, free: 9.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.1368, allocations: 181.5 kB / 361 MB, free: 9.102 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003702/0.1372, allocations: 233.5 kB / 361.2 MB, free: 8.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1372, allocations: 0 / 361.2 MB, free: 8.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007117/0.1379, allocations: 344.2 kB / 361.5 MB, free: 8.496 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.1379, allocations: 8 kB / 361.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.138, allocations: 4 kB / 361.5 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003448/0.1383, allocations: 61.09 kB / 361.6 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002569/0.1386, allocations: 63.91 kB / 361.7 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001373/0.14, allocations: 1.56 MB / 363.2 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.1403, allocations: 51.77 kB / 363.3 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.1403, allocations: 8 kB / 363.3 MB, free: 6.605 MB / 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.0001573/0.1405, allocations: 153.7 kB / 363.4 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.96e-05/0.1405, allocations: 31.61 kB / 363.5 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.184e-05/0.1406, allocations: 30.12 kB / 363.5 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.1406, allocations: 4 kB / 363.5 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.1406, allocations: 4 kB / 363.5 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-06/0.1406, allocations: 3.984 kB / 363.5 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003253/0.1409, allocations: 333.5 kB / 363.8 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1409, allocations: 0 / 363.8 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001886/0.1411, allocations: 39.91 kB / 363.9 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001903/0.1413, allocations: 60.75 kB / 363.9 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.81e-05/0.1414, allocations: 4 kB / 363.9 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/0.1424, allocations: 1.426 MB / 365.4 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1425, allocations: 0 / 365.4 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006898/0.1432, allocations: 350.8 kB / 365.7 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/0.1433, allocations: 120.8 kB / 365.8 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.071e-05/0.1433, allocations: 4 kB / 365.8 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.1435, allocations: 15.98 kB / 365.8 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.66e-05/0.1436, allocations: 43.77 kB / 365.9 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.1436, allocations: 4 kB / 365.9 MB, free: 3.762 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001594/0.1438, allocations: 190 kB / 366.1 MB, free: 3.578 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1438, allocations: 3.938 kB / 366.1 MB, free: 3.574 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003804/0.1442, allocations: 87.84 kB / 366.2 MB, free: 3.488 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.0001359/0.1443, allocations: 103.2 kB / 366.3 MB, free: 3.375 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006367/0.145, allocations: 325.4 kB / 366.6 MB, free: 3.047 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.145, allocations: 8.062 kB / 366.6 MB, free: 3.039 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002954/0.1453, allocations: 198.5 kB / 366.8 MB, free: 2.832 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.1456, allocations: 32.41 kB / 366.8 MB, free: 2.797 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.1472, allocations: 0.6802 MB / 367.5 MB, free: 2.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003258/0.1475, allocations: 0.7675 MB / 368.3 MB, free: 1.293 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000127/0.1476, allocations: 30.28 kB / 368.3 MB, free: 1.266 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.52e-05/0.1477, allocations: 19.44 kB / 368.3 MB, free: 1.246 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1477, allocations: 0 / 368.3 MB, free: 1.246 MB / 302.1 MB Notification: Performance of Templates: time 0.2708/0.4185, allocations: 3.088 MB / 371.4 MB, free: 24.88 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches