Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009703/0.0009703, allocations: 92.83 kB / 16.65 MB, free: 6.59 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.001066/0.001066, allocations: 181.4 kB / 17.56 MB, free: 6.203 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.392/1.392, allocations: 223.3 MB / 241.6 MB, free: 132 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002817/0.0002817, allocations: 4 kB / 301.5 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1092, allocations: 50.42 MB / 352 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003133/0.1124, allocations: 2.533 MB / 354.5 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.1139, allocations: 0.7129 MB / 355.2 MB, free: 348 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002743/0.1142, allocations: 4 kB / 355.2 MB, free: 344 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001879/0.1144, allocations: 39.69 kB / 355.2 MB, free: 304 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003056/0.1147, allocations: 79.38 kB / 355.3 MB, free: 224 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003901/0.1151, allocations: 79.88 kB / 355.4 MB, free: 144 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000499/0.1156, allocations: 358.4 kB / 355.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002341/0.1159, allocations: 99.92 kB / 355.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002071/0.1161, allocations: 123.5 kB / 356 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002146/0.1163, allocations: 131.4 kB / 356.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.469e-05/0.1164, allocations: 16 kB / 356.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.822e-05/0.1164, allocations: 16 kB / 356.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.858e-05/0.1165, allocations: 55.77 kB / 356.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001759/0.1167, allocations: 176.9 kB / 356.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003379/0.117, allocations: 334.8 kB / 356.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.117, allocations: 0 / 356.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.117, allocations: 0 / 356.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.1171, allocations: 8 kB / 356.7 MB, free: 14.83 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.00113/0.1182, allocations: 0.5589 MB / 357.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/0.1183, allocations: 8.031 kB / 357.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001345/0.1184, allocations: 70.72 kB / 357.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.1185, allocations: 32.56 kB / 357.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004658/0.119, allocations: 260.3 kB / 357.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000118/0.1191, allocations: 76.62 kB / 357.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.268e-05/0.1192, allocations: 32.36 kB / 357.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007332/0.12, allocations: 309.6 kB / 358 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.12, allocations: 0 / 358 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.046e-05/0.12, allocations: 12 kB / 358 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.1201, allocations: 4 kB / 358 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000526/0.1206, allocations: 190.1 kB / 358.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002382/0.123, allocations: 1.147 MB / 359.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004193/0.1234, allocations: 162.5 kB / 359.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001911/0.1236, allocations: 76.88 kB / 359.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.1237, allocations: 4 kB / 359.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004005/0.1241, allocations: 156.7 kB / 359.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.064e-06/0.1241, allocations: 0 / 359.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001391/0.1255, allocations: 403.1 kB / 360.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.251e-05/0.1256, allocations: 102.8 kB / 360.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003312/0.1259, allocations: 229 kB / 360.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.43e-05/0.126, allocations: 33.64 kB / 360.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.1261, allocations: 180.1 kB / 360.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.845e-05/0.1262, allocations: 71.02 kB / 360.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.052e-05/0.1263, allocations: 33.7 kB / 360.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.1265, allocations: 338.8 kB / 361.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001899/0.1267, allocations: 63.97 kB / 361.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002537/0.127, allocations: 148.6 kB / 361.3 MB, free: 9.836 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003902/0.1274, allocations: 185.2 kB / 361.5 MB, free: 9.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1274, allocations: 4 kB / 361.5 MB, free: 9.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006636/0.1281, allocations: 268.5 kB / 361.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.1281, allocations: 4 kB / 361.8 MB, free: 9.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.1281, allocations: 4 kB / 361.8 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003465/0.1285, allocations: 61.03 kB / 361.8 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000306/0.1288, allocations: 51.91 kB / 361.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001798/0.1306, allocations: 1.412 MB / 363.3 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003559/0.131, allocations: 47.8 kB / 363.3 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.994e-05/0.131, allocations: 8 kB / 363.4 MB, free: 7.637 MB / 302.1 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,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * 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 (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.0002201/0.1312, allocations: 145.8 kB / 363.5 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.632e-05/0.1313, allocations: 23.66 kB / 363.5 MB, free: 7.461 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.603e-05/0.1314, allocations: 30.17 kB / 363.6 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1314, allocations: 0 / 363.6 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/0.1314, allocations: 4 kB / 363.6 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1314, allocations: 3.938 kB / 363.6 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000483/0.1319, allocations: 329.4 kB / 363.9 MB, free: 7.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.1319, allocations: 7.938 kB / 363.9 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002277/0.1322, allocations: 31.92 kB / 363.9 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002547/0.1324, allocations: 48.81 kB / 364 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.788e-05/0.1325, allocations: 12 kB / 364 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001536/0.134, allocations: 1.319 MB / 365.3 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1341, allocations: 0 / 365.3 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008777/0.1349, allocations: 327.3 kB / 365.6 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000164/0.1351, allocations: 112.8 kB / 365.7 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.549e-05/0.1352, allocations: 12.09 kB / 365.7 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002367/0.1354, allocations: 23.98 kB / 365.8 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.1356, allocations: 31.89 kB / 365.8 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.1356, allocations: 7.984 kB / 365.8 MB, free: 4.953 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002161/0.1358, allocations: 156.5 kB / 366 MB, free: 4.801 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1358, allocations: 0 / 366 MB, free: 4.801 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005705/0.1364, allocations: 83.75 kB / 366 MB, free: 4.719 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: 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 (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.001348/0.1378, allocations: 0.8798 MB / 366.9 MB, free: 3.812 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007495/0.1385, allocations: 290.4 kB / 367.2 MB, free: 3.516 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.1385, allocations: 0 / 367.2 MB, free: 3.516 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003887/0.1389, allocations: 197.6 kB / 367.4 MB, free: 3.312 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004704/0.1394, allocations: 39.55 kB / 367.4 MB, free: 3.277 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005333/0.1448, allocations: 2.773 MB / 370.2 MB, free: 388 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2203/0.3651, allocations: 0.7541 MB / 371 MB, free: 24.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001806/0.3653, allocations: 23.84 kB / 371 MB, free: 24.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/0.3655, allocations: 81.39 kB / 371.1 MB, free: 24.67 MB / 302.1 MB Notification: Performance of SimCode: time 2.465e-06/0.3655, allocations: 0 / 371.1 MB, free: 24.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01997/0.3855, allocations: 5.037 MB / 376.1 MB, free: 24.4 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/0.3857, allocations: 234.5 kB / 376.3 MB, free: 24.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.01/2.395, allocations: 0 / 376.3 MB, free: 24.14 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches