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.001013/0.001013, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001078/0.001078, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 58.8 kB / 306.4 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08922/0.09036, allocations: 50.54 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003851/0.09424, allocations: 2.929 MB / 359.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001356/0.09562, allocations: 0.7518 MB / 360.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002394/0.09588, allocations: 4 kB / 360.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001966/0.09611, allocations: 35.69 kB / 360.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002436/0.09636, allocations: 87.31 kB / 360.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003567/0.09673, allocations: 87.84 kB / 360.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003949/0.09713, allocations: 358.4 kB / 361.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002163/0.09735, allocations: 107.8 kB / 361.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001734/0.09753, allocations: 131.5 kB / 361.4 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002084/0.09775, allocations: 147.3 kB / 361.5 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.56e-05/0.0978, allocations: 20 kB / 361.5 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.796e-05/0.09787, allocations: 20 kB / 361.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.085e-05/0.09793, allocations: 63.75 kB / 361.6 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001486/0.09809, allocations: 151.2 kB / 361.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00031/0.0984, allocations: 347 kB / 362.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.09842, allocations: 0 / 362.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.09842, allocations: 3.938 kB / 362.1 MB, free: 9.168 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.739e-06/0.09844, allocations: 4 kB / 362.1 MB, free: 9.164 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.00101/0.09946, allocations: 0.5941 MB / 362.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.0995, allocations: 8.031 kB / 362.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.898e-05/0.09959, allocations: 70.72 kB / 362.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.336e-05/0.09967, allocations: 36.56 kB / 362.8 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.09999, allocations: 264.3 kB / 363.1 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.733e-05/0.1001, allocations: 76.62 kB / 363.1 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.689e-05/0.1001, allocations: 28.38 kB / 363.2 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005522/0.1007, allocations: 301.7 kB / 363.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.1007, allocations: 0 / 363.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.847e-05/0.1007, allocations: 8 kB / 363.5 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.1008, allocations: 8 kB / 363.5 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003521/0.1011, allocations: 194.1 kB / 363.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.1028, allocations: 1.131 MB / 364.8 MB, free: 6.258 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003137/0.1031, allocations: 162.5 kB / 365 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001372/0.1033, allocations: 84.83 kB / 365 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.1033, allocations: 4 kB / 365 MB, free: 6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003444/0.1037, allocations: 157 kB / 365.2 MB, free: 5.828 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.1037, allocations: 0 / 365.2 MB, free: 5.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001134/0.1048, allocations: 387.2 kB / 365.6 MB, free: 5.422 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.664e-05/0.1049, allocations: 106.8 kB / 365.7 MB, free: 5.293 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002411/0.1052, allocations: 224.9 kB / 365.9 MB, free: 5.062 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.013e-05/0.1052, allocations: 33.7 kB / 365.9 MB, free: 5.023 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.1053, allocations: 172.2 kB / 366.1 MB, free: 4.852 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.062e-05/0.1054, allocations: 75 kB / 366.2 MB, free: 4.777 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.1055, allocations: 61.69 kB / 366.2 MB, free: 4.711 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.1057, allocations: 330.8 kB / 366.6 MB, free: 4.379 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.1058, allocations: 67.97 kB / 366.6 MB, free: 4.312 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.106, allocations: 145.5 kB / 366.8 MB, free: 4.137 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002806/0.1063, allocations: 200.8 kB / 367 MB, free: 3.918 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.1063, allocations: 8 kB / 367 MB, free: 3.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004573/0.1068, allocations: 268.4 kB / 367.2 MB, free: 3.641 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.1068, allocations: 8 kB / 367.2 MB, free: 3.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.1068, allocations: 3.984 kB / 367.2 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002899/0.1071, allocations: 56.98 kB / 367.3 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002215/0.1074, allocations: 55.91 kB / 367.4 MB, free: 3.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/0.1088, allocations: 1.4 MB / 368.8 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/0.1091, allocations: 43.67 kB / 368.8 MB, free: 1.941 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.1091, allocations: 8 kB / 368.8 MB, free: 1.934 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.0001466/0.1093, allocations: 154.9 kB / 369 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.702e-05/0.1093, allocations: 23.66 kB / 369 MB, free: 1.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.215e-05/0.1094, allocations: 30.17 kB / 369 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1094, allocations: 0 / 369 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.1094, allocations: 0 / 369 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1094, allocations: 7.984 kB / 369 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002971/0.1097, allocations: 309.5 kB / 369.3 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.1097, allocations: 7.938 kB / 369.3 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.1099, allocations: 31.98 kB / 369.4 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001957/0.1101, allocations: 52.81 kB / 369.4 MB, free: 1.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.364e-05/0.1101, allocations: 4 kB / 369.4 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.161/0.2711, allocations: 1.32 MB / 370.7 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2712, allocations: 0 / 370.7 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007708/0.2719, allocations: 327.2 kB / 371.1 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.2721, allocations: 111.8 kB / 371.2 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.23e-05/0.2721, allocations: 6.031 kB / 371.2 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.2723, allocations: 19 kB / 371.2 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.2724, allocations: 32.56 kB / 371.2 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.2724, allocations: 11 kB / 371.2 MB, free: 19.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001506/0.2726, allocations: 165.1 kB / 371.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2726, allocations: 0.6875 kB / 371.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000436/0.273, allocations: 79.02 kB / 371.5 MB, free: 19.29 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.0008109/0.2739, allocations: 0.8608 MB / 372.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005195/0.2744, allocations: 296.8 kB / 372.6 MB, free: 18.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2744, allocations: 1.062 kB / 372.6 MB, free: 18.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002589/0.2747, allocations: 194 kB / 372.8 MB, free: 18.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003054/0.275, allocations: 39.16 kB / 372.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003283/0.2783, allocations: 2.697 MB / 375.5 MB, free: 16.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001703/0.2785, allocations: 0.7583 MB / 376.3 MB, free: 16.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001171/0.2786, allocations: 25.48 kB / 376.3 MB, free: 16.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.731e-05/0.2787, allocations: 82.42 kB / 376.4 MB, free: 16.09 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2787, allocations: 0 / 376.4 MB, free: 16.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02111/0.2998, allocations: 5.142 MB / 381.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001264/0.3, allocations: 228.9 kB / 381.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.722/2.022, allocations: 0 / 381.8 MB, free: 15.35 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