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.00179/0.00179, allocations: 109 kB / 17.05 MB, free: 6.055 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.002037/0.002037, allocations: 195.9 kB / 17.99 MB, free: 5.156 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.514/1.514, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001485, allocations: 47.92 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2365, allocations: 49.43 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004134/0.2406, allocations: 2.874 MB / 403.1 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.242, allocations: 0.7205 MB / 403.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.2422, allocations: 4 kB / 403.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001803/0.2424, allocations: 51.5 kB / 403.9 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001756/0.2426, allocations: 95.12 kB / 404 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003343/0.2429, allocations: 103.7 kB / 404.1 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004144/0.2433, allocations: 370.4 kB / 404.4 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002339/0.2436, allocations: 119.3 kB / 404.6 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.2437, allocations: 139.5 kB / 404.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.244, allocations: 151.4 kB / 404.8 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.192e-05/0.244, allocations: 28 kB / 404.9 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.079e-05/0.2441, allocations: 32 kB / 404.9 MB, free: 4.133 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.315e-05/0.2442, allocations: 67.75 kB / 405 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001771/0.2443, allocations: 171.1 kB / 405.1 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004355/0.2448, allocations: 361.5 kB / 405.5 MB, free: 3.547 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2448, allocations: 0 / 405.5 MB, free: 3.547 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2448, allocations: 3.938 kB / 405.5 MB, free: 3.543 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.2448, allocations: 4 kB / 405.5 MB, free: 3.539 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.001044/0.2459, allocations: 0.6131 MB / 406.1 MB, free: 2.879 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.2459, allocations: 8.031 kB / 406.1 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.679e-05/0.246, allocations: 70.72 kB / 406.2 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.348e-05/0.2461, allocations: 32.75 kB / 406.2 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004301/0.2465, allocations: 265 kB / 406.5 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-05/0.2466, allocations: 80.61 kB / 406.6 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.35e-05/0.2467, allocations: 32.38 kB / 406.6 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005153/0.2472, allocations: 297.7 kB / 406.9 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.2472, allocations: 3.984 kB / 406.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.117e-05/0.2473, allocations: 12 kB / 406.9 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.2473, allocations: 8 kB / 406.9 MB, free: 2.012 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003608/0.2477, allocations: 190.1 kB / 407.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001773/0.2494, allocations: 1.127 MB / 408.2 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003199/0.2498, allocations: 166.6 kB / 408.4 MB, free: 456 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/0.2499, allocations: 76.83 kB / 408.4 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.2499, allocations: 4 kB / 408.5 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002845/0.2502, allocations: 159.4 kB / 408.6 MB, free: 192 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.024e-06/0.2503, allocations: 0 / 408.6 MB, free: 192 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001107/0.2514, allocations: 385.6 kB / 409 MB, free: 15.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.281e-05/0.2515, allocations: 110.8 kB / 409.1 MB, free: 15.65 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002345/0.2517, allocations: 225 kB / 409.3 MB, free: 15.42 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.2517, allocations: 33.7 kB / 409.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.2519, allocations: 188.4 kB / 409.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.419e-05/0.2519, allocations: 71.47 kB / 409.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.61e-05/0.252, allocations: 53.7 kB / 409.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2522, allocations: 338.7 kB / 410 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001343/0.2523, allocations: 67.97 kB / 410 MB, free: 14.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002089/0.2525, allocations: 156.4 kB / 410.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002887/0.2528, allocations: 192.8 kB / 410.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.2529, allocations: 0 / 410.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004644/0.2533, allocations: 268.6 kB / 410.7 MB, free: 13.99 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.2534, allocations: 8 kB / 410.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.2534, allocations: 3.938 kB / 410.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002773/0.2536, allocations: 57.03 kB / 410.7 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002135/0.2539, allocations: 51.92 kB / 410.8 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001488/0.2554, allocations: 1.572 MB / 412.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002356/0.2556, allocations: 43.92 kB / 412.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.074e-05/0.2556, allocations: 8 kB / 412.4 MB, free: 12.11 MB / 334.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.0001622/0.2558, allocations: 165.3 kB / 412.6 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.912e-05/0.2559, allocations: 23.86 kB / 412.6 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.481e-05/0.2559, allocations: 26.17 kB / 412.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.2559, allocations: 4 kB / 412.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.2559, allocations: 0 / 412.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2559, allocations: 0 / 412.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003362/0.2563, allocations: 325.4 kB / 412.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2563, allocations: 0 / 412.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001724/0.2565, allocations: 31.97 kB / 413 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001869/0.2567, allocations: 48.77 kB / 413 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.759e-05/0.2567, allocations: 11.98 kB / 413 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001252/0.258, allocations: 1.418 MB / 414.4 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.258, allocations: 0 / 414.4 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006481/0.2586, allocations: 324.6 kB / 414.8 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.2588, allocations: 120.8 kB / 414.9 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.673e-05/0.2588, allocations: 8 kB / 414.9 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001625/0.259, allocations: 16.11 kB / 414.9 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.022e-05/0.2591, allocations: 31.95 kB / 414.9 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.2591, allocations: 7.984 kB / 414.9 MB, free: 9.328 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000156/0.2593, allocations: 160.5 kB / 415.1 MB, free: 9.172 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2593, allocations: 0 / 415.1 MB, free: 9.172 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000361/0.2596, allocations: 79.89 kB / 415.2 MB, free: 9.094 MB / 334.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.001003/0.2606, allocations: 0.8629 MB / 416 MB, free: 8.199 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005565/0.2612, allocations: 302.8 kB / 416.3 MB, free: 7.891 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2612, allocations: 4.062 kB / 416.3 MB, free: 7.887 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002805/0.2615, allocations: 194.6 kB / 416.5 MB, free: 7.684 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.2618, allocations: 47.44 kB / 416.6 MB, free: 7.641 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003669/0.2655, allocations: 2.597 MB / 419.2 MB, free: 4.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/0.2659, allocations: 0.7597 MB / 419.9 MB, free: 4.125 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001012/0.266, allocations: 26.28 kB / 419.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.2661, allocations: 83.41 kB / 420 MB, free: 4.016 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2661, allocations: 0 / 420 MB, free: 4.016 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03396/0.3001, allocations: 5.632 MB / 425.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/11.98, allocations: 10.17 kB / 425.7 MB, free: 14.53 MB / 350.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