Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001138/0.001138, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001224/0.001225, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 61.81 kB / 307 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.108, allocations: 50.54 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004591/0.1126, allocations: 2.874 MB / 360.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.1141, allocations: 0.7711 MB / 361.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.1142, allocations: 4 kB / 361.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001755/0.1145, allocations: 55.5 kB / 361.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001697/0.1146, allocations: 83.19 kB / 361.4 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.115, allocations: 111.8 kB / 361.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003492/0.1154, allocations: 366.4 kB / 361.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000221/0.1156, allocations: 127.1 kB / 362 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001467/0.1157, allocations: 135.5 kB / 362.1 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001853/0.1159, allocations: 159.3 kB / 362.3 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.964e-05/0.116, allocations: 32 kB / 362.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.972e-05/0.1161, allocations: 28 kB / 362.3 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.666e-05/0.1162, allocations: 75.75 kB / 362.4 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001463/0.1163, allocations: 155.3 kB / 362.5 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003495/0.1167, allocations: 363 kB / 362.9 MB, free: 8.699 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1167, allocations: 0 / 362.9 MB, free: 8.699 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1167, allocations: 0 / 362.9 MB, free: 8.699 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.1167, allocations: 0 / 362.9 MB, free: 8.699 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.001021/0.1177, allocations: 0.6019 MB / 363.5 MB, free: 8.043 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.1178, allocations: 12.03 kB / 363.5 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.544e-05/0.1178, allocations: 74.59 kB / 363.6 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.019e-05/0.1179, allocations: 36.56 kB / 363.6 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003096/0.1182, allocations: 260.4 kB / 363.9 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.013e-05/0.1183, allocations: 80.61 kB / 363.9 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.074e-05/0.1184, allocations: 32.38 kB / 364 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004544/0.1188, allocations: 297.6 kB / 364.3 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.1189, allocations: 0 / 364.3 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.015e-05/0.1189, allocations: 12 kB / 364.3 MB, free: 7.184 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.1189, allocations: 11.98 kB / 364.3 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003326/0.1192, allocations: 190.1 kB / 364.5 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001598/0.1209, allocations: 1.127 MB / 365.6 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.1212, allocations: 158.5 kB / 365.8 MB, free: 5.609 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001293/0.1213, allocations: 80.83 kB / 365.8 MB, free: 5.527 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.1213, allocations: 0 / 365.8 MB, free: 5.527 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003007/0.1216, allocations: 157.2 kB / 366 MB, free: 5.355 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.031e-05/0.1216, allocations: 3.984 kB / 366 MB, free: 5.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001017/0.1227, allocations: 395.1 kB / 366.4 MB, free: 4.938 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.826e-05/0.1228, allocations: 110.8 kB / 366.5 MB, free: 4.805 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.123, allocations: 224.9 kB / 366.7 MB, free: 4.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.044e-05/0.123, allocations: 33.7 kB / 366.7 MB, free: 4.535 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.1232, allocations: 176.2 kB / 366.9 MB, free: 4.359 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.508e-05/0.1232, allocations: 67.02 kB / 367 MB, free: 4.293 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.556e-05/0.1233, allocations: 57.69 kB / 367 MB, free: 4.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1234, allocations: 342.8 kB / 367.4 MB, free: 3.887 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.1236, allocations: 59.98 kB / 367.4 MB, free: 3.828 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/0.1238, allocations: 144.7 kB / 367.6 MB, free: 3.652 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002638/0.124, allocations: 185.9 kB / 367.8 MB, free: 3.449 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.124, allocations: 0 / 367.8 MB, free: 3.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004175/0.1245, allocations: 284.3 kB / 368 MB, free: 3.164 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.1245, allocations: 6.969 kB / 368 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.1245, allocations: 0 / 368 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002646/0.1248, allocations: 57.03 kB / 368.1 MB, free: 3.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/0.125, allocations: 51.92 kB / 368.1 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001325/0.1263, allocations: 1.565 MB / 369.7 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002197/0.1265, allocations: 39.7 kB / 369.7 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.199e-05/0.1266, allocations: 15.98 kB / 369.8 MB, free: 1.297 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.000133/0.1267, allocations: 154.2 kB / 369.9 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.024e-05/0.1268, allocations: 27.72 kB / 369.9 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.646e-05/0.1268, allocations: 26.17 kB / 370 MB, free: 1.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.1268, allocations: 4 kB / 370 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1268, allocations: 0 / 370 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.1268, allocations: 7.875 kB / 370 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003035/0.1272, allocations: 321.4 kB / 370.3 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.1272, allocations: 0 / 370.3 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001602/0.1273, allocations: 35.98 kB / 370.3 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001807/0.1275, allocations: 44.81 kB / 370.4 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.1276, allocations: 11.98 kB / 370.4 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1687/0.2963, allocations: 1.416 MB / 371.8 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2963, allocations: 0.9688 kB / 371.8 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006982/0.297, allocations: 332.1 kB / 372.1 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.2971, allocations: 110.9 kB / 372.2 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.92e-05/0.2972, allocations: 10.33 kB / 372.2 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.2973, allocations: 17.09 kB / 372.3 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.2975, allocations: 31.61 kB / 372.3 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.2975, allocations: 5.516 kB / 372.3 MB, free: 18.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001434/0.2976, allocations: 162.4 kB / 372.5 MB, free: 18.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2976, allocations: 1.969 kB / 372.5 MB, free: 18.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004026/0.298, allocations: 84.73 kB / 372.5 MB, free: 18.91 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.0008252/0.2989, allocations: 0.8625 MB / 373.4 MB, free: 18.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005587/0.2994, allocations: 299.2 kB / 373.7 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2995, allocations: 0 / 373.7 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002646/0.2997, allocations: 197 kB / 373.9 MB, free: 18.1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.3, allocations: 34.89 kB / 373.9 MB, free: 18.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00329/0.3033, allocations: 2.608 MB / 376.5 MB, free: 16.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001975/0.3035, allocations: 0.7589 MB / 377.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001118/0.3037, allocations: 21.83 kB / 377.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.853e-05/0.3038, allocations: 83.88 kB / 377.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3038, allocations: 4 kB / 377.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02799/0.3318, allocations: 5.523 MB / 382.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.22, allocations: 3 kB / 382.9 MB, free: 15.14 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches