Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009843/0.0009846, allocations: 199.9 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 226.5 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007885/0.0007885, allocations: 102.1 kB / 296.7 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002377/0.0002379, allocations: 11.94 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2087/0.209, allocations: 51.29 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01366/0.2227, allocations: 23.76 MB / 431.9 MB, free: 3.848 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02399/0.2467, allocations: 20.52 MB / 452.4 MB, free: 15.28 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004003/0.2508, allocations: 59.62 kB / 452.5 MB, free: 15.22 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004646/0.2555, allocations: 1.29 MB / 453.8 MB, free: 13.93 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01009/0.2656, allocations: 2.627 MB / 456.4 MB, free: 11.28 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005247/0.2709, allocations: 1.249 MB / 457.6 MB, free: 10.02 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01945/0.2904, allocations: 11.97 MB / 469.6 MB, free: 14.02 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001878/0.2923, allocations: 0.8259 MB / 470.4 MB, free: 13.16 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002855/0.2952, allocations: 1.807 MB / 472.2 MB, free: 11.34 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002494/0.2977, allocations: 1.918 MB / 474.2 MB, free: 9.41 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004457/0.2981, allocations: 80 kB / 474.2 MB, free: 9.332 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004224/0.3024, allocations: 1.373 MB / 475.6 MB, free: 7.957 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005439/0.3029, allocations: 0.5039 MB / 476.1 MB, free: 7.449 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00328/0.3062, allocations: 2.432 MB / 478.5 MB, free: 4.996 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005611/0.3119, allocations: 4.782 MB / 483.3 MB, free: 204 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.3119, allocations: 0 / 483.3 MB, free: 204 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.3119, allocations: 0 / 483.3 MB, free: 204 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002234/0.3121, allocations: 0 / 483.3 MB, free: 204 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.00862/0.3208, allocations: 5.792 MB / 489.1 MB, free: 10.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.3208, allocations: 8.031 kB / 489.1 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003929/0.3212, allocations: 161.2 kB / 489.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009528/0.3222, allocations: 0.7449 MB / 490 MB, free: 9.387 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007199/0.3294, allocations: 4.632 MB / 494.7 MB, free: 4.664 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.928e-05/0.3295, allocations: 69.94 kB / 494.7 MB, free: 4.594 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002446/0.3298, allocations: 99.91 kB / 494.8 MB, free: 4.496 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002189/0.3319, allocations: 1.313 MB / 496.1 MB, free: 3.168 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.332, allocations: 4 kB / 496.1 MB, free: 3.164 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001076/0.3321, allocations: 36 kB / 496.2 MB, free: 3.129 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.711e-05/0.3321, allocations: 39.97 kB / 496.2 MB, free: 3.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00236/0.3345, allocations: 1.531 MB / 497.7 MB, free: 1.555 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009464/0.344, allocations: 5.654 MB / 0.4916 GB, free: 11.81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/0.3456, allocations: 1.021 MB / 0.4926 GB, free: 10.78 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001532/0.3472, allocations: 1.251 MB / 0.4938 GB, free: 9.531 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.207/0.5542, allocations: 61.1 MB / 0.5535 GB, free: 42.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008884/0.5551, allocations: 0.5824 MB / 0.5541 GB, free: 41.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 3.045e-06/0.5551, allocations: 0 / 0.5541 GB, free: 41.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.003072/0.5582, allocations: 1.937 MB / 0.5559 GB, free: 40.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.405e-05/0.5583, allocations: 59.97 kB / 0.556 GB, free: 40.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005355/0.5636, allocations: 5.517 MB / 0.5614 GB, free: 34.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001479/0.5638, allocations: 45.27 kB / 0.5614 GB, free: 34.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00171/0.5655, allocations: 2.949 MB / 0.5643 GB, free: 31.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002719/0.5658, allocations: 300.2 kB / 0.5646 GB, free: 31.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.566e-05/0.5659, allocations: 28 kB / 0.5646 GB, free: 31.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.863e-05/0.566, allocations: 361.9 kB / 0.565 GB, free: 31.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007546/0.5667, allocations: 423.4 kB / 0.5654 GB, free: 30.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009022/0.5676, allocations: 1.1 MB / 0.5664 GB, free: 29.26 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001785/0.5694, allocations: 1.65 MB / 0.5681 GB, free: 27.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.408e-06/0.5695, allocations: 8 kB / 0.5681 GB, free: 27.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003098/0.5726, allocations: 2.244 MB / 0.5703 GB, free: 25.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.5726, allocations: 16 kB / 0.5703 GB, free: 25.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001502/0.5728, allocations: 160.9 kB / 0.5704 GB, free: 24.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.285e-05/0.5728, allocations: 35.98 kB / 0.5705 GB, free: 24.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.5739, allocations: 367.4 kB / 0.5708 GB, free: 24.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.936e-05/0.5739, allocations: 47.84 kB / 0.5709 GB, free: 24.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001733/0.5756, allocations: 194.2 kB / 0.571 GB, free: 24.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001529/0.5758, allocations: 124 kB / 0.5712 GB, free: 24.16 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001215/0.577, allocations: 0.7169 MB / 0.5719 GB, free: 23.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006845/0.5777, allocations: 0.7217 MB / 0.5726 GB, free: 22.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004483/0.5822, allocations: 2.192 MB / 0.5747 GB, free: 20.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.5822, allocations: 12 kB / 0.5747 GB, free: 20.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.5822, allocations: 0 / 0.5747 GB, free: 20.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.5823, allocations: 7.969 kB / 0.5747 GB, free: 20.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004687/0.587, allocations: 3.647 MB / 0.5783 GB, free: 16.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001274/0.5871, allocations: 136 kB / 0.5784 GB, free: 16.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007048/0.5878, allocations: 167.2 kB / 0.5786 GB, free: 16.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.052e-06/0.5878, allocations: 3.938 kB / 0.5786 GB, free: 16.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.911e-05/0.5879, allocations: 63.98 kB / 0.5786 GB, free: 16.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.723e-06/0.5879, allocations: 7.938 kB / 0.5786 GB, free: 16.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5879, allocations: 0 / 0.5786 GB, free: 16.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002967/0.5909, allocations: 2.214 MB / 0.5808 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001222/0.5922, allocations: 0.8162 MB / 0.5816 GB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005167/0.5927, allocations: 16 kB / 0.5816 GB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/0.5938, allocations: 39.97 kB / 0.5817 GB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002846/0.5941, allocations: 104.5 kB / 0.5818 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.5942, allocations: 71.94 kB / 0.5818 GB, free: 13.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003822/0.598, allocations: 3.542 MB / 0.5853 GB, free: 9.629 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.598, allocations: 0 / 0.5853 GB, free: 9.629 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002122/0.6002, allocations: 1.073 MB / 0.5863 GB, free: 8.598 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.004322/0.6045, allocations: 3.859 MB / 0.5901 GB, free: 4.957 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001962/0.6065, allocations: 1.459 MB / 0.5915 GB, free: 3.461 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.6065, allocations: 7.938 kB / 0.5915 GB, free: 3.453 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008725/0.6074, allocations: 0.7864 MB / 0.5923 GB, free: 2.617 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004932/0.6123, allocations: 1.125 MB / 0.5934 GB, free: 1.492 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08248/0.6948, allocations: 43.16 MB / 0.6356 GB, free: 2.227 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002175/0.697, allocations: 2.588 MB / 0.6381 GB, free: 15.61 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002451/0.6995, allocations: 2.405 MB / 0.6404 GB, free: 13.2 MB / 442.7 MB Notification: Performance of SimCode: time 7.31e-07/0.6995, allocations: 0 / 0.6404 GB, free: 13.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.357/8.057, allocations: 84.43 MB / 0.7229 GB, free: 117.2 MB / 458.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches