Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009258/0.0009259, allocations: 191.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.232/1.232, allocations: 226.5 MB / 244.7 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008092/0.0008092, allocations: 96.19 kB / 296.7 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002076/0.0002076, allocations: 8 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2003/0.2006, allocations: 51.28 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.007743/0.2083, allocations: 13.57 MB / 421.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01634/0.2247, allocations: 18.96 MB / 440.7 MB, free: 11.09 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001471/0.2262, allocations: 35.81 kB / 440.7 MB, free: 11.05 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002403/0.2286, allocations: 0.9837 MB / 441.7 MB, free: 10.07 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005623/0.2343, allocations: 1.875 MB / 443.6 MB, free: 8.18 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003737/0.238, allocations: 1.12 MB / 444.7 MB, free: 7.055 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009166/0.2472, allocations: 6.253 MB / 450.9 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000828/0.2481, allocations: 450 kB / 451.4 MB, free: 320 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001399/0.2495, allocations: 0.9796 MB / 452.3 MB, free: 15.32 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009414/0.2504, allocations: 1.052 MB / 453.4 MB, free: 14.27 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000154/0.2506, allocations: 40 kB / 453.4 MB, free: 14.23 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003657/0.2543, allocations: 1.342 MB / 454.8 MB, free: 12.88 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002875/0.2546, allocations: 289.8 kB / 455.1 MB, free: 12.6 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001515/0.2561, allocations: 1.337 MB / 456.4 MB, free: 11.24 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002596/0.2587, allocations: 2.866 MB / 459.3 MB, free: 8.371 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.2587, allocations: 0 / 459.3 MB, free: 8.371 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2587, allocations: 0 / 459.3 MB, free: 8.371 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.731e-05/0.2588, allocations: 0 / 459.3 MB, free: 8.371 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.004309/0.2631, allocations: 3.338 MB / 462.6 MB, free: 4.957 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.2631, allocations: 12.03 kB / 462.6 MB, free: 4.945 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001156/0.2633, allocations: 98.5 kB / 462.7 MB, free: 4.84 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003425/0.2636, allocations: 411 kB / 463.1 MB, free: 4.434 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002963/0.2666, allocations: 2.502 MB / 465.6 MB, free: 1.859 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.91e-05/0.2666, allocations: 33 kB / 465.6 MB, free: 1.828 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.2667, allocations: 59.89 kB / 465.7 MB, free: 1.77 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.268, allocations: 0.746 MB / 466.5 MB, free: 1.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.268, allocations: 3.984 kB / 466.5 MB, free: 1.016 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.28e-05/0.2681, allocations: 16 kB / 466.5 MB, free: 1 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.2681, allocations: 27.98 kB / 466.5 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/0.2696, allocations: 0.8515 MB / 467.3 MB, free: 124 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004446/0.2741, allocations: 3.129 MB / 470.5 MB, free: 12.9 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.2752, allocations: 0.622 MB / 471.1 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009377/0.2762, allocations: 0.6673 MB / 471.8 MB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02653/0.3027, allocations: 30.78 MB / 0.4908 GB, free: 8.578 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007451/0.3035, allocations: 389.4 kB / 0.4911 GB, free: 8.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.765e-06/0.3035, allocations: 3.938 kB / 0.4911 GB, free: 8.176 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.002111/0.3056, allocations: 1.171 MB / 0.4923 GB, free: 6.996 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/0.3057, allocations: 59.19 kB / 0.4923 GB, free: 6.926 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003167/0.3089, allocations: 3.047 MB / 0.4953 GB, free: 3.879 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.912e-05/0.3089, allocations: 41.69 kB / 0.4954 GB, free: 3.832 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001193/0.3101, allocations: 1.569 MB / 0.4969 GB, free: 2.254 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.3103, allocations: 165.7 kB / 0.497 GB, free: 2.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.507e-05/0.3103, allocations: 16 kB / 0.4971 GB, free: 2.074 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.3104, allocations: 345.9 kB / 0.4974 GB, free: 1.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000559/0.311, allocations: 257.9 kB / 0.4976 GB, free: 1.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007557/0.3118, allocations: 0.6215 MB / 0.4982 GB, free: 0.6875 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.161/0.4727, allocations: 0.9296 MB / 0.4992 GB, free: 96.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.337e-05/0.4728, allocations: 11.59 kB / 0.4992 GB, free: 96.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002594/0.4754, allocations: 1.282 MB / 0.5004 GB, free: 96.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.381e-05/0.4754, allocations: 8.469 kB / 0.5004 GB, free: 96.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001134/0.4755, allocations: 82.23 kB / 0.5005 GB, free: 96.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.025e-05/0.4756, allocations: 16.5 kB / 0.5005 GB, free: 96.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007024/0.4763, allocations: 215.9 kB / 0.5007 GB, free: 96.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.372e-05/0.4763, allocations: 27.66 kB / 0.5007 GB, free: 96.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009024/0.4772, allocations: 118.4 kB / 0.5009 GB, free: 96.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.4774, allocations: 66.52 kB / 0.5009 GB, free: 96.46 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 ($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.0006991/0.4781, allocations: 458 kB / 0.5014 GB, free: 96.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002916/0.4784, allocations: 400.6 kB / 0.5017 GB, free: 96.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00274/0.4811, allocations: 1.258 MB / 0.503 GB, free: 95.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.4811, allocations: 3.938 kB / 0.503 GB, free: 95.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.4811, allocations: 0 / 0.503 GB, free: 95.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.4812, allocations: 2.156 kB / 0.503 GB, free: 95.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002823/0.484, allocations: 2.19 MB / 0.5051 GB, free: 94.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.435e-05/0.4841, allocations: 75 kB / 0.5052 GB, free: 94.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004378/0.4845, allocations: 98.36 kB / 0.5053 GB, free: 94.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.4845, allocations: 3.938 kB / 0.5053 GB, free: 94.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.718e-05/0.4846, allocations: 31.69 kB / 0.5053 GB, free: 94.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.4846, allocations: 11.75 kB / 0.5053 GB, free: 94.81 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.4846, allocations: 0 / 0.5053 GB, free: 94.81 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001956/0.4865, allocations: 1.376 MB / 0.5067 GB, free: 94.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005366/0.4871, allocations: 489.2 kB / 0.5071 GB, free: 93.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002492/0.4874, allocations: 20.53 kB / 0.5072 GB, free: 93.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006348/0.488, allocations: 46.17 kB / 0.5072 GB, free: 93.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001779/0.4882, allocations: 61.69 kB / 0.5073 GB, free: 93.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-05/0.4882, allocations: 39.5 kB / 0.5073 GB, free: 93.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002208/0.4905, allocations: 1.97 MB / 0.5092 GB, free: 93.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4905, allocations: 0 / 0.5092 GB, free: 93.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001089/0.4916, allocations: 0.5905 MB / 0.5098 GB, free: 93.1 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.003044/0.4946, allocations: 2.614 MB / 0.5124 GB, free: 91.83 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.496, allocations: 0.8569 MB / 0.5132 GB, free: 91.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.4961, allocations: 3.828 kB / 0.5132 GB, free: 91.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006301/0.4967, allocations: 468.7 kB / 0.5136 GB, free: 90.63 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002484/0.4992, allocations: 0.6001 MB / 0.5142 GB, free: 90.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03145/0.5306, allocations: 19.44 MB / 0.5332 GB, free: 68.49 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008645/0.5316, allocations: 1.71 MB / 0.5349 GB, free: 66.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009749/0.5325, allocations: 1.269 MB / 0.5361 GB, free: 65.48 MB / 378.7 MB Notification: Performance of SimCode: time 7.21e-07/0.5326, allocations: 0 / 0.5361 GB, free: 65.48 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.026/5.558, allocations: 46.5 MB / 0.5815 GB, free: 18.89 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches