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.001341/0.001341, allocations: 113.2 kB / 17.73 MB, free: 5.336 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.001333/0.001334, allocations: 188.2 kB / 18.67 MB, free: 4.402 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.443/1.443, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001622/0.001622, allocations: 47.94 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09928/0.1009, allocations: 46.62 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004213/0.1052, allocations: 2.828 MB / 377.5 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.1064, allocations: 0.7795 MB / 378.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.1066, allocations: 7.938 kB / 378.3 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001558/0.1068, allocations: 51.5 kB / 378.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001795/0.1069, allocations: 87.19 kB / 378.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003277/0.1073, allocations: 99.81 kB / 378.5 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004125/0.1077, allocations: 378.2 kB / 378.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002411/0.1079, allocations: 127.2 kB / 379 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.1081, allocations: 135.6 kB / 379.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002359/0.1084, allocations: 151.3 kB / 379.3 MB, free: 432 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.181e-05/0.1084, allocations: 32 kB / 379.3 MB, free: 400 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.491e-05/0.1085, allocations: 32 kB / 379.3 MB, free: 368 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.071e-05/0.1086, allocations: 71.73 kB / 379.4 MB, free: 296 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001808/0.1088, allocations: 163.3 kB / 379.6 MB, free: 132 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2085/0.3172, allocations: 363.3 kB / 379.9 MB, free: 9.992 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/0.3173, allocations: 0 / 379.9 MB, free: 9.992 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3173, allocations: 0 / 379.9 MB, free: 9.992 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.66e-05/0.3173, allocations: 0 / 379.9 MB, free: 9.992 MB / 318.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.001028/0.3184, allocations: 0.6193 MB / 380.5 MB, free: 9.535 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.3184, allocations: 8.906 kB / 380.5 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.297e-05/0.3185, allocations: 64.69 kB / 380.6 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.051e-05/0.3186, allocations: 35.47 kB / 380.6 MB, free: 9.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.3189, allocations: 271.4 kB / 380.9 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.153e-05/0.319, allocations: 77.8 kB / 381 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.713e-05/0.319, allocations: 24.64 kB / 381 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004668/0.3195, allocations: 299.4 kB / 381.3 MB, free: 9.125 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.3195, allocations: 1.375 kB / 381.3 MB, free: 9.125 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.3196, allocations: 13.25 kB / 381.3 MB, free: 9.125 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.3196, allocations: 10.91 kB / 381.3 MB, free: 9.125 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003209/0.3199, allocations: 188.6 kB / 381.5 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.3214, allocations: 1.124 MB / 382.6 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003222/0.3217, allocations: 156.5 kB / 382.8 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001502/0.3219, allocations: 83.42 kB / 382.9 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.367e-05/0.3219, allocations: 1.375 kB / 382.9 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002809/0.3222, allocations: 153.5 kB / 383 MB, free: 8.402 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.104e-06/0.3222, allocations: 0 / 383 MB, free: 8.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.00106/0.3233, allocations: 386.5 kB / 383.4 MB, free: 8.254 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.3234, allocations: 109.5 kB / 383.5 MB, free: 8.129 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002144/0.3236, allocations: 227.4 kB / 383.7 MB, free: 8.023 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.3236, allocations: 32.31 kB / 383.8 MB, free: 7.992 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.596e-05/0.3237, allocations: 181.9 kB / 383.9 MB, free: 7.867 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.54e-05/0.3238, allocations: 75 kB / 384 MB, free: 7.824 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.591e-05/0.3239, allocations: 63.69 kB / 384.1 MB, free: 7.801 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.687e-05/0.3239, allocations: 337.4 kB / 384.4 MB, free: 7.484 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.3241, allocations: 65.59 kB / 384.5 MB, free: 7.484 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/0.3242, allocations: 152.9 kB / 384.6 MB, free: 7.398 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/0.3244, allocations: 189.6 kB / 384.8 MB, free: 7.328 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.3244, allocations: 0 / 384.8 MB, free: 7.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003996/0.3249, allocations: 272.1 kB / 385.1 MB, free: 7.273 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.3249, allocations: 5.781 kB / 385.1 MB, free: 7.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3249, allocations: 3.156 kB / 385.1 MB, free: 7.273 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002744/0.3252, allocations: 57.66 kB / 385.1 MB, free: 7.262 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002063/0.3254, allocations: 52.67 kB / 385.2 MB, free: 7.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001022/0.3264, allocations: 1.567 MB / 386.7 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002098/0.3266, allocations: 46.44 kB / 386.8 MB, free: 5.742 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.205e-05/0.3267, allocations: 8.609 kB / 386.8 MB, free: 5.742 MB / 318.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.0001131/0.3268, allocations: 155.3 kB / 387 MB, free: 5.621 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.368e-05/0.3268, allocations: 25.14 kB / 387 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.795e-05/0.3269, allocations: 29.12 kB / 387 MB, free: 5.602 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.319e-06/0.3269, allocations: 2.766 kB / 387 MB, free: 5.602 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.3269, allocations: 1.25 kB / 387 MB, free: 5.602 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.3269, allocations: 1.172 kB / 387 MB, free: 5.602 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003284/0.3272, allocations: 329.6 kB / 387.3 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.3273, allocations: 0 / 387.3 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001612/0.3274, allocations: 33 kB / 387.4 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001823/0.3276, allocations: 49.95 kB / 387.4 MB, free: 5.387 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.3276, allocations: 8.016 kB / 387.4 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000886/0.3285, allocations: 1.419 MB / 388.8 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3286, allocations: 6.875 kB / 388.9 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005856/0.3291, allocations: 326.6 kB / 389.2 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.326e-05/0.3292, allocations: 114.9 kB / 389.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.506e-05/0.3293, allocations: 6.359 kB / 389.3 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.3295, allocations: 26.06 kB / 389.3 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.3296, allocations: 29.78 kB / 389.3 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.3296, allocations: 9.375 kB / 389.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000126/0.3297, allocations: 161.2 kB / 389.5 MB, free: 3.551 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3297, allocations: 0 / 389.5 MB, free: 3.551 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003437/0.3301, allocations: 87.34 kB / 389.6 MB, free: 3.527 MB / 318.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.0008388/0.3309, allocations: 0.8664 MB / 390.5 MB, free: 2.828 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000578/0.3315, allocations: 288.7 kB / 390.7 MB, free: 2.668 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3315, allocations: 4.125 kB / 390.7 MB, free: 2.664 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002838/0.3318, allocations: 196.3 kB / 390.9 MB, free: 2.527 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002946/0.3321, allocations: 34.34 kB / 391 MB, free: 2.516 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003356/0.3355, allocations: 2.594 MB / 393.6 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002261/0.3357, allocations: 0.7621 MB / 394.3 MB, free: 8 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.3358, allocations: 23.72 kB / 394.4 MB, free: 0 / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002846/0.3361, allocations: 96.23 kB / 394.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3361, allocations: 0 / 394.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03551/0.3716, allocations: 5.642 MB / 400.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.74, allocations: 15.8 kB / 400.1 MB, free: 15.01 MB / 334.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