Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001993/0.001993, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002547/0.002547, allocations: 213.1 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 230.5 MB / 257.4 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 59.89 kB / 377.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2183, allocations: 53.4 MB / 431.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008348/0.2266, allocations: 6.935 MB / 438.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02082/0.2474, allocations: 16.7 MB / 454.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009799/0.2484, allocations: 94.94 kB / 454.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002089/0.2505, allocations: 0.7607 MB / 455.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004874/0.2554, allocations: 1.815 MB / 457.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003588/0.259, allocations: 1.328 MB / 458.8 MB, free: 10.72 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004845/0.2638, allocations: 3.303 MB / 462.1 MB, free: 7.406 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002918/0.2641, allocations: 132.8 kB / 462.2 MB, free: 7.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007578/0.2649, allocations: 0.5834 MB / 462.8 MB, free: 6.664 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006706/0.2655, allocations: 0.5355 MB / 463.3 MB, free: 6.125 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001089/0.2656, allocations: 44 kB / 463.3 MB, free: 6.082 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002792/0.2684, allocations: 1.175 MB / 464.5 MB, free: 4.906 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001693/0.2686, allocations: 170.8 kB / 464.7 MB, free: 4.738 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005235/0.2691, allocations: 0.5006 MB / 465.2 MB, free: 4.234 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002878/0.272, allocations: 2.241 MB / 467.4 MB, free: 1.984 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.272, allocations: 4 kB / 467.4 MB, free: 1.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.272, allocations: 0 / 467.4 MB, free: 1.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.138e-05/0.272, allocations: 0 / 467.4 MB, free: 1.98 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003054/0.2751, allocations: 1.994 MB / 469.4 MB, free: 15.94 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.2751, allocations: 15.98 kB / 469.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.08e-05/0.2752, allocations: 62.53 kB / 469.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00023/0.2754, allocations: 202.7 kB / 469.7 MB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001929/0.2774, allocations: 1.257 MB / 471 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.834e-05/0.2774, allocations: 24.64 kB / 471 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.855e-05/0.2775, allocations: 27.98 kB / 471 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000912/0.2784, allocations: 441.8 kB / 471.4 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.2784, allocations: 3.984 kB / 471.4 MB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.786e-05/0.2784, allocations: 4 kB / 471.5 MB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.882e-05/0.2785, allocations: 12 kB / 471.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001111/0.2796, allocations: 478.3 kB / 471.9 MB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002695/0.2823, allocations: 1.473 MB / 473.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009265/0.2832, allocations: 342.9 kB / 473.7 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007243/0.2839, allocations: 365.9 kB / 474.1 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01303/0.297, allocations: 7 MB / 481.1 MB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006344/0.2976, allocations: 260.5 kB / 481.3 MB, free: 3.641 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.264e-06/0.2976, allocations: 0 / 481.3 MB, free: 3.641 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002025/0.2996, allocations: 0.7665 MB / 482.1 MB, free: 2.863 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.98e-05/0.2997, allocations: 63.28 kB / 482.2 MB, free: 2.789 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001796/0.3015, allocations: 1.467 MB / 483.6 MB, free: 1.285 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.312e-05/0.3015, allocations: 37.7 kB / 483.7 MB, free: 1.242 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006633/0.3022, allocations: 0.7232 MB / 484.4 MB, free: 0.5156 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.3023, allocations: 103.2 kB / 484.5 MB, free: 424 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001937/0.3025, allocations: 126 kB / 484.6 MB, free: 292 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.3026, allocations: 326 kB / 484.9 MB, free: 15.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004648/0.3031, allocations: 160.9 kB / 485.1 MB, free: 15.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006104/0.3037, allocations: 358.8 kB / 485.5 MB, free: 15.36 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.3048, allocations: 0.5372 MB / 486 MB, free: 14.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.167e-06/0.3048, allocations: 0 / 486 MB, free: 14.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001502/0.3063, allocations: 0.7523 MB / 486.7 MB, free: 13.97 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.3063, allocations: 10.66 kB / 486.8 MB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.38e-05/0.3064, allocations: 40 kB / 486.8 MB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003306/0.3067, allocations: 136.8 kB / 486.9 MB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000417/0.3071, allocations: 112 kB / 487 MB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006881/0.3078, allocations: 0.6774 MB / 487.7 MB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005346/0.3083, allocations: 71.66 kB / 487.8 MB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.426e-05/0.3084, allocations: 36 kB / 487.8 MB, free: 12.87 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003969/0.3088, allocations: 276.7 kB / 488.1 MB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002049/0.309, allocations: 202.7 kB / 488.3 MB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001807/0.3108, allocations: 0.7427 MB / 489 MB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.3108, allocations: 4 kB / 489 MB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.3108, allocations: 0 / 489 MB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.3108, allocations: 4 kB / 489 MB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002266/0.3131, allocations: 1.24 MB / 490.3 MB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-05/0.3131, allocations: 43.94 kB / 490.3 MB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00024/0.3134, allocations: 43.89 kB / 490.4 MB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002542/0.3136, allocations: 124.8 kB / 490.5 MB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.167e-05/0.3137, allocations: 23.92 kB / 490.5 MB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006644/0.3143, allocations: 0.6657 MB / 491.2 MB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.685e-06/0.3144, allocations: 8.016 kB / 491.2 MB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.3157, allocations: 0.7142 MB / 491.9 MB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004745/0.3162, allocations: 216.6 kB / 492.1 MB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/0.3164, allocations: 8 kB / 492.1 MB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004328/0.3168, allocations: 27.95 kB / 492.1 MB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001706/0.317, allocations: 39.89 kB / 492.2 MB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.147e-05/0.317, allocations: 24 kB / 492.2 MB, free: 8.336 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0013/0.3183, allocations: 0.961 MB / 493.2 MB, free: 7.355 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3183, allocations: 0 / 493.2 MB, free: 7.355 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008733/0.3192, allocations: 331.6 kB / 493.5 MB, free: 7.031 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00247/0.3217, allocations: 1.741 MB / 495.2 MB, free: 5.254 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.323, allocations: 0.4929 MB / 495.7 MB, free: 4.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.323, allocations: 0 / 495.7 MB, free: 4.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006578/0.3236, allocations: 279.3 kB / 496 MB, free: 4.465 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001321/0.325, allocations: 307 kB / 496.3 MB, free: 4.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01317/0.3381, allocations: 9.016 MB / 0.4935 GB, free: 10.76 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005715/0.3387, allocations: 0.5628 MB / 0.494 GB, free: 10.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005845/0.3393, allocations: 199.9 kB / 0.4942 GB, free: 9.957 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006578/0.3399, allocations: 0.5617 MB / 0.4948 GB, free: 9.395 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3399, allocations: 0 / 0.4948 GB, free: 9.395 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07696/0.4169, allocations: 36.16 MB / 0.5301 GB, free: 5.516 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.08/14.5, allocations: 11.31 kB / 0.5301 GB, free: 5.508 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.csv --start-time 0 --stop-time 1e-11 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 5.0025e-15 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp.S.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.csv. Warning: Get data of variable mp.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.276444430928677]