Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_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.00126/0.00126, allocations: 104.2 kB / 17.58 MB, free: 5.559 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.001336/0.001336, allocations: 192 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.358/1.358, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 52.39 kB / 280.7 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08958/0.09078, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.005954/0.09678, allocations: 2.836 MB / 330.2 MB, free: 1.508 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001818/0.09862, allocations: 0.7603 MB / 331 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002884/0.09894, allocations: 7.938 kB / 331 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000248/0.09923, allocations: 47.5 kB / 331 MB, free: 0.6836 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003307/0.09958, allocations: 91.19 kB / 331.1 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004731/0.1001, allocations: 103.8 kB / 331.2 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005488/0.1006, allocations: 370.4 kB / 331.6 MB, free: 132 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000305/0.1009, allocations: 119.2 kB / 331.7 MB, free: 16 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00028/0.1012, allocations: 135.7 kB / 331.8 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002943/0.1016, allocations: 155.3 kB / 332 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.643e-05/0.1016, allocations: 28 kB / 332 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.923e-05/0.1017, allocations: 32 kB / 332 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.771e-05/0.1018, allocations: 71.75 kB / 332.1 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002159/0.1021, allocations: 167.2 kB / 332.3 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004757/0.1026, allocations: 370.8 kB / 332.6 MB, free: 15.07 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1026, allocations: 0 / 332.6 MB, free: 15.07 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1026, allocations: 0 / 332.6 MB, free: 15.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.1026, allocations: 0 / 332.6 MB, free: 15.07 MB / 286.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.001383/0.104, allocations: 0.5979 MB / 333.2 MB, free: 14.42 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.104, allocations: 8.031 kB / 333.2 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.1042, allocations: 70.72 kB / 333.3 MB, free: 14.34 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.1043, allocations: 32.56 kB / 333.3 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004594/0.1047, allocations: 272.3 kB / 333.6 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.898e-05/0.1048, allocations: 84.61 kB / 333.7 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.762e-05/0.1049, allocations: 24.38 kB / 333.7 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006028/0.1055, allocations: 301.6 kB / 334 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.1056, allocations: 0 / 334 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.146e-05/0.1056, allocations: 15.98 kB / 334 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.1056, allocations: 8 kB / 334 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004621/0.1061, allocations: 182.2 kB / 334.2 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001777/0.1079, allocations: 1.139 MB / 335.4 MB, free: 12.15 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002753/0.1082, allocations: 154.6 kB / 335.5 MB, free: 11.99 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001375/0.1083, allocations: 72.84 kB / 335.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.1084, allocations: 11.92 kB / 335.6 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003059/0.1087, allocations: 165.8 kB / 335.7 MB, free: 11.72 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.413e-06/0.1087, allocations: 0 / 335.7 MB, free: 11.72 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.000974/0.1097, allocations: 387.1 kB / 336.1 MB, free: 11.31 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.492e-05/0.1097, allocations: 106.8 kB / 336.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001937/0.1099, allocations: 221 kB / 336.4 MB, free: 10.96 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.531e-05/0.11, allocations: 33.7 kB / 336.5 MB, free: 10.92 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.1101, allocations: 176.2 kB / 336.6 MB, free: 10.74 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.151e-05/0.1101, allocations: 75 kB / 336.7 MB, free: 10.67 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.179e-05/0.1102, allocations: 53.69 kB / 336.8 MB, free: 10.61 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1104, allocations: 342.8 kB / 337.1 MB, free: 10.27 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.1105, allocations: 67.97 kB / 337.2 MB, free: 10.2 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/0.1106, allocations: 132.7 kB / 337.3 MB, free: 10.04 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002516/0.1109, allocations: 200.1 kB / 337.5 MB, free: 9.82 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1109, allocations: 0 / 337.5 MB, free: 9.82 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004043/0.1113, allocations: 271.7 kB / 337.8 MB, free: 9.547 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.1113, allocations: 8 kB / 337.8 MB, free: 9.539 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.1114, allocations: 0 / 337.8 MB, free: 9.539 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002572/0.1116, allocations: 61.03 kB / 337.8 MB, free: 9.477 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002039/0.1118, allocations: 47.92 kB / 337.9 MB, free: 9.43 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001368/0.1132, allocations: 1.568 MB / 339.4 MB, free: 7.727 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.1135, allocations: 43.61 kB / 339.5 MB, free: 7.684 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.055e-05/0.1135, allocations: 15.98 kB / 339.5 MB, free: 7.668 MB / 286.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.0001331/0.1136, allocations: 153.8 kB / 339.7 MB, free: 7.508 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.88e-05/0.1137, allocations: 19.81 kB / 339.7 MB, free: 7.488 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.879e-05/0.1137, allocations: 30.17 kB / 339.7 MB, free: 7.461 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1137, allocations: 0 / 339.7 MB, free: 7.461 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-06/0.1137, allocations: 0 / 339.7 MB, free: 7.461 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1138, allocations: 4 kB / 339.7 MB, free: 7.457 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002927/0.1141, allocations: 321.3 kB / 340 MB, free: 7.094 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1141, allocations: 0 / 340 MB, free: 7.094 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.1142, allocations: 35.92 kB / 340.1 MB, free: 7.059 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00018/0.1144, allocations: 52.81 kB / 340.1 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.1144, allocations: 7.984 kB / 340.1 MB, free: 6.996 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/0.1155, allocations: 1.422 MB / 341.5 MB, free: 5.434 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1155, allocations: 0 / 341.5 MB, free: 5.434 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006005/0.1161, allocations: 322.3 kB / 341.9 MB, free: 5.098 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.715e-05/0.1162, allocations: 120.7 kB / 342 MB, free: 4.961 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.476e-05/0.1163, allocations: 4 kB / 342 MB, free: 4.957 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001946/0.1165, allocations: 20.11 kB / 342 MB, free: 4.938 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.643e-05/0.1166, allocations: 31.89 kB / 342 MB, free: 4.906 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.1166, allocations: 11.98 kB / 342 MB, free: 4.895 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001388/0.1168, allocations: 160.5 kB / 342.2 MB, free: 4.738 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1168, allocations: 0 / 342.2 MB, free: 4.738 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003482/0.1171, allocations: 79.84 kB / 342.3 MB, free: 4.66 MB / 286.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.0009671/0.1181, allocations: 0.8628 MB / 343.1 MB, free: 3.766 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005981/0.1187, allocations: 294.9 kB / 343.4 MB, free: 3.465 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.1187, allocations: 4.062 kB / 343.4 MB, free: 3.461 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002563/0.119, allocations: 190.6 kB / 343.6 MB, free: 3.262 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/0.1193, allocations: 48.33 kB / 343.7 MB, free: 3.215 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003335/0.1226, allocations: 2.608 MB / 346.3 MB, free: 476 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.123, allocations: 0.7596 MB / 347 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.1231, allocations: 26.28 kB / 347.1 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.1232, allocations: 79.42 kB / 347.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1232, allocations: 4 kB / 347.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06709/0.1903, allocations: 5.518 MB / 352.7 MB, free: 9.996 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.3, allocations: 3.938 kB / 352.7 MB, free: 9.992 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches