Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008303/0.0008303, allocations: 174.1 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.197/1.197, allocations: 205.4 MB / 222.9 MB, free: 9.039 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007244/0.0007243, allocations: 91.84 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003242/0.0003243, allocations: 8 kB / 327.6 MB, free: 15.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2028/0.2032, allocations: 47.57 MB / 375.2 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.008937/0.2121, allocations: 12.93 MB / 388.1 MB, free: 35.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01498/0.2272, allocations: 18.01 MB / 406.1 MB, free: 17.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002156/0.2294, allocations: 31.81 kB / 406.1 MB, free: 17.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002528/0.2319, allocations: 0.9486 MB / 407.1 MB, free: 16.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005883/0.2378, allocations: 1.859 MB / 409 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003335/0.2412, allocations: 1.065 MB / 410 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007914/0.2491, allocations: 6.034 MB / 416.1 MB, free: 7.707 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007866/0.2499, allocations: 446.1 kB / 416.5 MB, free: 7.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001022/0.2509, allocations: 0.8784 MB / 417.4 MB, free: 6.367 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007205/0.2517, allocations: 1.021 MB / 418.4 MB, free: 5.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001482/0.2518, allocations: 40 kB / 418.4 MB, free: 5.301 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002836/0.2547, allocations: 1.085 MB / 419.5 MB, free: 4.215 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002026/0.2549, allocations: 289.8 kB / 419.8 MB, free: 3.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001064/0.256, allocations: 1.345 MB / 421.1 MB, free: 2.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002237/0.2582, allocations: 2.89 MB / 424 MB, free: 15.67 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.2582, allocations: 0 / 424 MB, free: 15.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2582, allocations: 0 / 424 MB, free: 15.67 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.794e-05/0.2583, allocations: 3.938 kB / 424 MB, free: 15.67 MB / 314.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.004474/0.2628, allocations: 3.35 MB / 427.4 MB, free: 12.24 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.2628, allocations: 12.03 kB / 427.4 MB, free: 12.23 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001195/0.2629, allocations: 98.5 kB / 427.5 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003339/0.2633, allocations: 418.8 kB / 427.9 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003078/0.2664, allocations: 2.507 MB / 430.4 MB, free: 9.133 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/0.2664, allocations: 37 kB / 430.4 MB, free: 9.098 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.2665, allocations: 55.98 kB / 430.5 MB, free: 9.043 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.2678, allocations: 0.746 MB / 431.2 MB, free: 8.293 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.2679, allocations: 0 / 431.2 MB, free: 8.293 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.482e-05/0.2679, allocations: 16 kB / 431.3 MB, free: 8.277 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.051e-05/0.2679, allocations: 19.98 kB / 431.3 MB, free: 8.258 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001503/0.2695, allocations: 0.8631 MB / 432.1 MB, free: 7.391 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004756/0.2742, allocations: 3.149 MB / 435.3 MB, free: 4.164 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.2754, allocations: 0.6103 MB / 435.9 MB, free: 3.543 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009326/0.2763, allocations: 0.6673 MB / 436.6 MB, free: 2.867 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0266/0.3029, allocations: 30.23 MB / 466.8 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007832/0.3038, allocations: 397.6 kB / 467.2 MB, free: 140 kB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.407e-06/0.3038, allocations: 0 / 467.2 MB, free: 140 kB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.002438/0.3062, allocations: 1.171 MB / 468.4 MB, free: 14.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.3063, allocations: 67.34 kB / 468.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004106/0.3104, allocations: 3.064 MB / 471.5 MB, free: 11.81 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.879e-05/0.3105, allocations: 33.7 kB / 471.5 MB, free: 11.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001263/0.3118, allocations: 1.58 MB / 473.1 MB, free: 10.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.312, allocations: 165.7 kB / 473.3 MB, free: 10.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.726e-05/0.312, allocations: 16 kB / 473.3 MB, free: 10 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.3121, allocations: 345.9 kB / 473.6 MB, free: 9.656 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006045/0.3127, allocations: 261.8 kB / 473.9 MB, free: 9.402 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007579/0.3135, allocations: 0.6177 MB / 474.5 MB, free: 8.609 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001431/0.3149, allocations: 0.9403 MB / 475.4 MB, free: 7.496 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.097e-05/0.315, allocations: 4 kB / 475.4 MB, free: 7.492 MB / 362.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002262/0.3172, allocations: 1.288 MB / 476.7 MB, free: 6.195 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.377e-05/0.3173, allocations: 12.25 kB / 476.7 MB, free: 6.184 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001068/0.3174, allocations: 80 kB / 476.8 MB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.482e-05/0.3174, allocations: 20 kB / 476.8 MB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007133/0.3182, allocations: 211.6 kB / 477 MB, free: 5.879 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.697e-05/0.3182, allocations: 27.92 kB / 477.1 MB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00131/0.3195, allocations: 122.9 kB / 477.2 MB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/0.3196, allocations: 64 kB / 477.2 MB, free: 5.668 MB / 362.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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008174/0.3205, allocations: 468.7 kB / 477.7 MB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005093/0.321, allocations: 399.1 kB / 478.1 MB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003003/0.324, allocations: 1.255 MB / 479.4 MB, free: 3.543 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.324, allocations: 4 kB / 479.4 MB, free: 3.539 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.324, allocations: 4 kB / 479.4 MB, free: 3.535 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.324, allocations: 3.938 kB / 479.4 MB, free: 3.531 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00337/0.3274, allocations: 2.202 MB / 481.6 MB, free: 1.262 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-05/0.3275, allocations: 68 kB / 481.6 MB, free: 1.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004841/0.328, allocations: 107.9 kB / 481.7 MB, free: 1.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.328, allocations: 3.984 kB / 481.7 MB, free: 1.086 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.613e-05/0.3281, allocations: 28 kB / 481.8 MB, free: 1.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.3281, allocations: 4 kB / 481.8 MB, free: 1.055 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3281, allocations: 4 kB / 481.8 MB, free: 1.051 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/0.3303, allocations: 1.388 MB / 483.2 MB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006875/0.331, allocations: 484 kB / 483.6 MB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003139/0.3313, allocations: 15.98 kB / 483.7 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006986/0.3321, allocations: 40.03 kB / 483.7 MB, free: 15.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.3323, allocations: 71.81 kB / 483.8 MB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.912e-05/0.3323, allocations: 39.98 kB / 483.8 MB, free: 14.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002453/0.3348, allocations: 1.98 MB / 485.8 MB, free: 13 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3348, allocations: 0 / 485.8 MB, free: 13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001308/0.3361, allocations: 0.605 MB / 486.4 MB, free: 12.39 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003526/0.3396, allocations: 2.614 MB / 489 MB, free: 9.742 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.3412, allocations: 0.8607 MB / 489.9 MB, free: 8.859 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3412, allocations: 0 / 489.9 MB, free: 8.859 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007167/0.3419, allocations: 467.2 kB / 490.3 MB, free: 8.379 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002178/0.3441, allocations: 0.4977 MB / 490.8 MB, free: 7.879 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0389/0.383, allocations: 19.6 MB / 0.4985 GB, free: 2.156 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001214/0.3843, allocations: 1.711 MB / 0.5001 GB, free: 428 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1386/0.523, allocations: 1.272 MB / 0.5014 GB, free: 128.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.362e-06/0.523, allocations: 3.938 kB / 0.5014 GB, free: 128.1 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.249/5.772, allocations: 46.76 MB / 0.547 GB, free: 88.99 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches