Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009744/0.0009744, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9029/0.9029, allocations: 173.4 MB / 200.5 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.037e-05/1.185e-05, allocations: 8.672 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01156/0.01157, allocations: 12.38 MB / 330.8 MB, free: 9.918 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01606/0.02763, allocations: 17.86 MB / 348.7 MB, free: 7.984 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001355/0.02898, allocations: 134.5 kB / 348.8 MB, free: 7.852 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001911/0.03089, allocations: 1.153 MB / 349.9 MB, free: 6.691 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004802/0.0357, allocations: 2.421 MB / 352.4 MB, free: 4.25 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002805/0.0385, allocations: 1.441 MB / 353.8 MB, free: 2.805 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005387/0.04389, allocations: 6.703 MB / 360.5 MB, free: 12.08 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003941/0.04428, allocations: 257.8 kB / 360.8 MB, free: 11.8 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001151/0.04543, allocations: 1.562 MB / 362.3 MB, free: 10.23 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006581/0.04609, allocations: 0.7978 MB / 363.1 MB, free: 9.43 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001014/0.04619, allocations: 76 kB / 363.2 MB, free: 9.355 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001739/0.04793, allocations: 1.21 MB / 364.4 MB, free: 8.145 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001728/0.0481, allocations: 325.6 kB / 364.7 MB, free: 7.824 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004942/0.0486, allocations: 0.7476 MB / 365.5 MB, free: 7.074 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002624/0.05122, allocations: 3.745 MB / 369.2 MB, free: 3.316 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.05123, allocations: 3.938 kB / 369.2 MB, free: 3.312 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.05123, allocations: 4 kB / 369.2 MB, free: 3.309 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.579e-05/0.05126, allocations: 4 kB / 369.2 MB, free: 3.305 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003089/0.05435, allocations: 3.69 MB / 372.9 MB, free: 15.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.05439, allocations: 8.922 kB / 372.9 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.564e-05/0.05449, allocations: 102.5 kB / 373 MB, free: 15.44 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002866/0.05477, allocations: 413.4 kB / 373.4 MB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002143/0.05692, allocations: 2.291 MB / 375.7 MB, free: 12.65 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.964e-05/0.05695, allocations: 37 kB / 375.8 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.592e-05/0.05703, allocations: 55.89 kB / 375.8 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008503/0.05788, allocations: 0.7382 MB / 376.6 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.0579, allocations: 3.984 kB / 376.6 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.858e-05/0.05795, allocations: 20 kB / 376.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.574e-05/0.05796, allocations: 19.98 kB / 376.6 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.05899, allocations: 0.8202 MB / 377.4 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003306/0.06229, allocations: 2.844 MB / 380.3 MB, free: 8.031 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000779/0.06307, allocations: 0.5125 MB / 380.8 MB, free: 7.512 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006029/0.06367, allocations: 0.5692 MB / 381.3 MB, free: 6.938 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01432/0.078, allocations: 13.68 MB / 395 MB, free: 8.875 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004595/0.07845, allocations: 377.7 kB / 395.4 MB, free: 8.492 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.104e-06/0.07846, allocations: 0 / 395.4 MB, free: 8.492 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001303/0.07976, allocations: 1.104 MB / 396.5 MB, free: 7.379 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.732e-05/0.0798, allocations: 59.39 kB / 396.5 MB, free: 7.309 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002268/0.08207, allocations: 2.954 MB / 399.5 MB, free: 4.344 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.651e-05/0.0821, allocations: 33.7 kB / 399.5 MB, free: 4.305 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008436/0.08295, allocations: 1.495 MB / 401 MB, free: 2.801 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.767e-05/0.08304, allocations: 174.5 kB / 401.2 MB, free: 2.629 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001894/0.08323, allocations: 230.3 kB / 401.4 MB, free: 2.398 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.047e-05/0.08332, allocations: 338 kB / 401.8 MB, free: 2.062 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003366/0.08366, allocations: 249.8 kB / 402 MB, free: 1.816 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004933/0.08415, allocations: 0.5978 MB / 402.6 MB, free: 1.043 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008589/0.08501, allocations: 0.9024 MB / 403.5 MB, free: 15.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.08502, allocations: 7.828 kB / 403.5 MB, free: 15.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001175/0.08619, allocations: 1.244 MB / 404.8 MB, free: 14.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.08621, allocations: 12 kB / 404.8 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.18e-05/0.08627, allocations: 80 kB / 404.8 MB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.08629, allocations: 16.81 kB / 404.9 MB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000381/0.08667, allocations: 203.6 kB / 405.1 MB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-05/0.08669, allocations: 23.92 kB / 405.1 MB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004722/0.08716, allocations: 115.3 kB / 405.2 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-05/0.08723, allocations: 68 kB / 405.3 MB, free: 14.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004648/0.0877, allocations: 435.3 kB / 405.7 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002186/0.08792, allocations: 405.4 kB / 406.1 MB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/0.08939, allocations: 1.187 MB / 407.3 MB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.08939, allocations: 4 kB / 407.3 MB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.0894, allocations: 3.984 kB / 407.3 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.0894, allocations: 4 kB / 407.3 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001912/0.09132, allocations: 2.026 MB / 409.3 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.007e-05/0.09137, allocations: 72 kB / 409.4 MB, free: 10 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.09161, allocations: 95.91 kB / 409.5 MB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.09161, allocations: 0 / 409.5 MB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.674e-05/0.09165, allocations: 36 kB / 409.5 MB, free: 9.871 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.09165, allocations: 3.938 kB / 409.5 MB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.09165, allocations: 3.938 kB / 409.5 MB, free: 9.863 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.09293, allocations: 1.317 MB / 410.8 MB, free: 8.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000407/0.09334, allocations: 423.2 kB / 411.2 MB, free: 8.105 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/0.09349, allocations: 8 kB / 411.2 MB, free: 8.098 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000355/0.09384, allocations: 40.02 kB / 411.3 MB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.09396, allocations: 59.94 kB / 411.3 MB, free: 8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.386e-05/0.094, allocations: 39.98 kB / 411.4 MB, free: 7.961 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001628/0.09563, allocations: 1.899 MB / 413.3 MB, free: 6.062 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.09563, allocations: 0 / 413.3 MB, free: 6.062 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008843/0.09651, allocations: 0.5814 MB / 413.9 MB, free: 5.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * 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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002209/0.09872, allocations: 2.594 MB / 416.5 MB, free: 2.855 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009154/0.09964, allocations: 0.79 MB / 417.3 MB, free: 2.035 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.09964, allocations: 0 / 417.3 MB, free: 2.035 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004222/0.1001, allocations: 428.1 kB / 417.7 MB, free: 1.594 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001421/0.1015, allocations: 0.6153 MB / 418.3 MB, free: 0.9727 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01632/0.1178, allocations: 16.35 MB / 434.6 MB, free: 92 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000765/0.1186, allocations: 1.113 MB / 435.7 MB, free: 14.95 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009764/0.1195, allocations: 361.1 kB / 436.1 MB, free: 14.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009575/0.1205, allocations: 1.215 MB / 437.3 MB, free: 13.37 MB / 410.7 MB Notification: Performance of SimCode: time 2.996e-06/0.1205, allocations: 0 / 437.3 MB, free: 13.37 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2029/0.3234, allocations: 64.21 MB / 0.4898 GB, free: 79.58 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.589/9.913, allocations: 17.16 kB / 0.4898 GB, free: 79.57 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp1.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.763174964115024]