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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 110.8 kB / 16.51 MB, free: 6.715 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.001406/0.001406, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.386/1.386, allocations: 222.9 MB / 241.1 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 59.5 kB / 300.1 MB, free: 6.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09635/0.09761, allocations: 49.44 MB / 349.5 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01472/0.1124, allocations: 14.58 MB / 364.1 MB, free: 6.109 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1941/0.3066, allocations: 20.87 MB / 385 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00189/0.3085, allocations: 30.69 kB / 385 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002923/0.3115, allocations: 1.086 MB / 386.1 MB, free: 7.699 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006738/0.3182, allocations: 1.914 MB / 388 MB, free: 6.605 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004933/0.3232, allocations: 1.206 MB / 389.2 MB, free: 5.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01033/0.3335, allocations: 6.367 MB / 395.6 MB, free: 3.613 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007709/0.3343, allocations: 433 kB / 396 MB, free: 3.402 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001712/0.3361, allocations: 1.046 MB / 397 MB, free: 2.969 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001196/0.3373, allocations: 1.091 MB / 398.1 MB, free: 2.371 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002182/0.3375, allocations: 50.22 kB / 398.2 MB, free: 2.371 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00454/0.342, allocations: 1.458 MB / 399.6 MB, free: 1.742 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003696/0.3424, allocations: 303.3 kB / 399.9 MB, free: 1.508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001534/0.344, allocations: 1.353 MB / 401.3 MB, free: 0.625 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004699/0.3487, allocations: 3.666 MB / 404.9 MB, free: 13.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3487, allocations: 0 / 404.9 MB, free: 13.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.021e-06/0.3487, allocations: 3.938 kB / 404.9 MB, free: 13.74 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.755e-05/0.3488, allocations: 4 kB / 404.9 MB, free: 13.74 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005038/0.3538, allocations: 3.682 MB / 408.6 MB, free: 9.977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.3539, allocations: 8.031 kB / 408.6 MB, free: 9.969 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001261/0.354, allocations: 98.5 kB / 408.7 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004178/0.3544, allocations: 399.2 kB / 409.1 MB, free: 9.469 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00319/0.3576, allocations: 2.433 MB / 411.6 MB, free: 6.961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.982e-05/0.3577, allocations: 37 kB / 411.6 MB, free: 6.926 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.3578, allocations: 55.89 kB / 411.6 MB, free: 6.871 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.3591, allocations: 0.7342 MB / 412.4 MB, free: 6.133 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.3592, allocations: 0.875 kB / 412.4 MB, free: 6.133 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.116e-05/0.3592, allocations: 24 kB / 412.4 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.108e-05/0.3593, allocations: 19.98 kB / 412.4 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001602/0.3609, allocations: 0.8163 MB / 413.2 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004899/0.3658, allocations: 3.055 MB / 416.3 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.367, allocations: 0.5674 MB / 416.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009581/0.3679, allocations: 0.6487 MB / 417.5 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02733/0.3953, allocations: 30.13 MB / 447.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007569/0.3961, allocations: 365.4 kB / 448 MB, free: 14.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.535e-06/0.3961, allocations: 0 / 448 MB, free: 14.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002299/0.3984, allocations: 1.089 MB / 449.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/0.3985, allocations: 63.33 kB / 449.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003589/0.4021, allocations: 2.939 MB / 452.1 MB, free: 10.17 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.514e-05/0.4022, allocations: 37.7 kB / 452.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001208/0.4034, allocations: 1.485 MB / 453.6 MB, free: 8.633 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001603/0.4036, allocations: 165.7 kB / 453.8 MB, free: 8.469 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003629/0.4039, allocations: 226.1 kB / 454 MB, free: 8.242 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.4041, allocations: 341.9 kB / 454.3 MB, free: 7.902 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005821/0.4047, allocations: 241.9 kB / 454.6 MB, free: 7.668 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007782/0.4054, allocations: 0.6097 MB / 455.2 MB, free: 6.887 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.4068, allocations: 0.8896 MB / 456.1 MB, free: 5.828 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.4068, allocations: 7.938 kB / 456.1 MB, free: 5.824 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002035/0.4088, allocations: 1.222 MB / 457.3 MB, free: 4.594 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.4089, allocations: 15.94 kB / 457.3 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000105/0.409, allocations: 84.08 kB / 457.4 MB, free: 4.496 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.409, allocations: 20 kB / 457.4 MB, free: 4.477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006979/0.4097, allocations: 199.6 kB / 457.6 MB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.098e-05/0.4098, allocations: 23.92 kB / 457.6 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009834/0.4107, allocations: 107.1 kB / 457.7 MB, free: 4.152 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.4109, allocations: 64 kB / 457.8 MB, free: 4.09 MB / 366.1 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.0006962/0.4116, allocations: 433.5 kB / 458.2 MB, free: 3.656 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003521/0.4119, allocations: 383.3 kB / 458.6 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002804/0.4147, allocations: 1.201 MB / 459.8 MB, free: 2.059 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.4148, allocations: 11.94 kB / 459.8 MB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.4148, allocations: 4 kB / 459.8 MB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.4148, allocations: 3.984 kB / 459.8 MB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0031/0.4179, allocations: 2.092 MB / 461.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.031e-05/0.418, allocations: 68 kB / 462 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004756/0.4185, allocations: 95.84 kB / 462.1 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/0.4185, allocations: 4 kB / 462.1 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.593e-05/0.4186, allocations: 32.06 kB / 462.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.4186, allocations: 4 kB / 462.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4186, allocations: 0 / 462.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002186/0.4208, allocations: 1.301 MB / 463.4 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006385/0.4214, allocations: 472.3 kB / 463.9 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002928/0.4217, allocations: 15.98 kB / 463.9 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006672/0.4224, allocations: 32.03 kB / 463.9 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.4226, allocations: 59.94 kB / 464 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.717e-05/0.4226, allocations: 36 kB / 464 MB, free: 13.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002305/0.4249, allocations: 1.907 MB / 465.9 MB, free: 11.81 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.425, allocations: 0 / 465.9 MB, free: 11.81 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001328/0.4263, allocations: 0.5855 MB / 466.5 MB, free: 11.23 MB / 382.1 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.003418/0.4297, allocations: 2.529 MB / 469 MB, free: 8.664 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00156/0.4313, allocations: 0.8098 MB / 469.8 MB, free: 7.824 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.4313, allocations: 0 / 469.8 MB, free: 7.824 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007489/0.4321, allocations: 443 kB / 470.3 MB, free: 7.367 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002359/0.4344, allocations: 0.5765 MB / 470.8 MB, free: 6.785 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03857/0.473, allocations: 21.71 MB / 492.6 MB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00109/0.4742, allocations: 1.661 MB / 494.2 MB, free: 13.24 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001291/0.4755, allocations: 357.1 kB / 494.6 MB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001136/0.4766, allocations: 1.21 MB / 495.8 MB, free: 11.68 MB / 414.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4766, allocations: 0 / 495.8 MB, free: 11.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2575/0.7341, allocations: 58.76 MB / 0.5415 GB, free: 154.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001916/0.7343, allocations: 211.1 kB / 0.5417 GB, free: 153.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.603/4.338, allocations: 0 / 0.5417 GB, free: 153.9 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches