Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009848/0.0009848, allocations: 194 kB / 17.38 MB, free: 4.438 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 226.5 MB / 244.7 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000753/0.000753, allocations: 93.98 kB / 296.7 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002279/0.000228, allocations: 11.98 kB / 356.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2075, allocations: 51.29 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.007582/0.2151, allocations: 13.04 MB / 421.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01628/0.2314, allocations: 18.89 MB / 440.1 MB, free: 11.66 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001462/0.2329, allocations: 35.81 kB / 440.1 MB, free: 11.62 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002372/0.2353, allocations: 0.9721 MB / 441.1 MB, free: 10.65 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005407/0.2407, allocations: 1.836 MB / 442.9 MB, free: 8.801 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003645/0.2444, allocations: 1.116 MB / 444 MB, free: 7.68 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009297/0.2537, allocations: 6.134 MB / 450.1 MB, free: 1.527 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000753/0.2544, allocations: 421.5 kB / 450.6 MB, free: 1.086 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001254/0.2557, allocations: 0.9523 MB / 451.5 MB, free: 132 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009216/0.2566, allocations: 1.013 MB / 452.5 MB, free: 15.11 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001458/0.2568, allocations: 44 kB / 452.6 MB, free: 15.07 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004092/0.2609, allocations: 1.345 MB / 453.9 MB, free: 13.72 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002943/0.2612, allocations: 277.9 kB / 454.2 MB, free: 13.45 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001243/0.2625, allocations: 1.287 MB / 455.5 MB, free: 12.14 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002366/0.2648, allocations: 2.679 MB / 458.2 MB, free: 9.453 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2648, allocations: 3.938 kB / 458.2 MB, free: 9.449 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2649, allocations: 0 / 458.2 MB, free: 9.449 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.739e-05/0.2649, allocations: 0 / 458.2 MB, free: 9.449 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.004182/0.2691, allocations: 3.221 MB / 461.4 MB, free: 6.152 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.2691, allocations: 12.03 kB / 461.4 MB, free: 6.141 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001421/0.2693, allocations: 98.5 kB / 461.5 MB, free: 6.035 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000348/0.2696, allocations: 399.1 kB / 461.9 MB, free: 5.641 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003085/0.2727, allocations: 2.433 MB / 464.3 MB, free: 3.133 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.405e-05/0.2728, allocations: 37 kB / 464.3 MB, free: 3.098 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.2729, allocations: 63.83 kB / 464.4 MB, free: 3.035 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.2742, allocations: 0.7421 MB / 465.1 MB, free: 2.289 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.2742, allocations: 0 / 465.1 MB, free: 2.289 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.769e-05/0.2743, allocations: 20 kB / 465.2 MB, free: 2.27 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.2743, allocations: 27.98 kB / 465.2 MB, free: 2.242 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001478/0.2758, allocations: 0.8515 MB / 466 MB, free: 1.391 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004958/0.2808, allocations: 3.079 MB / 469.1 MB, free: 14.22 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.282, allocations: 0.6219 MB / 469.7 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009446/0.2829, allocations: 0.6751 MB / 470.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02644/0.3094, allocations: 30.77 MB / 0.4894 GB, free: 9.891 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000739/0.3101, allocations: 385.4 kB / 0.4898 GB, free: 9.496 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.484e-06/0.3102, allocations: 0 / 0.4898 GB, free: 9.496 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.002144/0.3123, allocations: 1.148 MB / 0.4909 GB, free: 8.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.3124, allocations: 67.19 kB / 0.491 GB, free: 8.262 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003045/0.3154, allocations: 2.896 MB / 0.4938 GB, free: 5.355 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.586e-05/0.3155, allocations: 33.7 kB / 0.4939 GB, free: 5.316 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001127/0.3166, allocations: 1.485 MB / 0.4953 GB, free: 3.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.3167, allocations: 169.7 kB / 0.4955 GB, free: 3.652 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.529e-05/0.3168, allocations: 20 kB / 0.4955 GB, free: 3.633 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.3169, allocations: 341.9 kB / 0.4958 GB, free: 3.293 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005709/0.3175, allocations: 257.9 kB / 0.4961 GB, free: 3.043 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000739/0.3182, allocations: 0.6215 MB / 0.4967 GB, free: 2.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.3196, allocations: 0.9325 MB / 0.4976 GB, free: 1.148 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.3196, allocations: 7.938 kB / 0.4976 GB, free: 1.141 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.1716/0.4912, allocations: 1.261 MB / 0.4988 GB, free: 96.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.113e-05/0.4913, allocations: 10.23 kB / 0.4988 GB, free: 96.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001831/0.4915, allocations: 82.3 kB / 0.4989 GB, free: 96.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.66e-05/0.4915, allocations: 17.73 kB / 0.4989 GB, free: 96.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000865/0.4924, allocations: 215.6 kB / 0.4991 GB, free: 96.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.831e-05/0.4924, allocations: 25.73 kB / 0.4992 GB, free: 96.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.4937, allocations: 117.2 kB / 0.4993 GB, free: 96.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001656/0.4939, allocations: 68.33 kB / 0.4993 GB, free: 96.02 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.001192/0.4951, allocations: 438.9 kB / 0.4998 GB, free: 95.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005931/0.4957, allocations: 383.1 kB / 0.5001 GB, free: 95.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003005/0.4987, allocations: 1.238 MB / 0.5013 GB, free: 95.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.4987, allocations: 5.406 kB / 0.5013 GB, free: 95.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.4987, allocations: 0 / 0.5013 GB, free: 95.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.4987, allocations: 6.797 kB / 0.5013 GB, free: 95.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003179/0.5019, allocations: 2.122 MB / 0.5034 GB, free: 94.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.839e-05/0.502, allocations: 72.28 kB / 0.5035 GB, free: 94.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004527/0.5025, allocations: 107.9 kB / 0.5036 GB, free: 94.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.242e-06/0.5025, allocations: 3.469 kB / 0.5036 GB, free: 94.85 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.049e-05/0.5025, allocations: 29.48 kB / 0.5036 GB, free: 94.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.5026, allocations: 3.938 kB / 0.5036 GB, free: 94.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.5026, allocations: 4.078 kB / 0.5036 GB, free: 94.85 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001993/0.5046, allocations: 1.367 MB / 0.505 GB, free: 94.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000646/0.5052, allocations: 476.4 kB / 0.5054 GB, free: 93.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003847/0.5056, allocations: 11.84 kB / 0.5054 GB, free: 93.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000742/0.5064, allocations: 38.67 kB / 0.5055 GB, free: 93.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001849/0.5066, allocations: 66.05 kB / 0.5055 GB, free: 93.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.286e-05/0.5066, allocations: 35.38 kB / 0.5056 GB, free: 93.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002325/0.509, allocations: 1.87 MB / 0.5074 GB, free: 93.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.509, allocations: 0 / 0.5074 GB, free: 93.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001406/0.5104, allocations: 0.5812 MB / 0.5079 GB, free: 93.23 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.003143/0.5135, allocations: 2.594 MB / 0.5105 GB, free: 92.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001425/0.515, allocations: 0.8439 MB / 0.5113 GB, free: 91.72 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.515, allocations: 4.125 kB / 0.5113 GB, free: 91.72 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006124/0.5156, allocations: 461.3 kB / 0.5117 GB, free: 91.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002607/0.5182, allocations: 0.585 MB / 0.5123 GB, free: 91.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03231/0.5506, allocations: 18.33 MB / 0.5302 GB, free: 70.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009673/0.5516, allocations: 1.661 MB / 0.5318 GB, free: 69.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001051/0.5526, allocations: 1.218 MB / 0.533 GB, free: 68.01 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5527, allocations: 0 / 0.533 GB, free: 68.01 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.08/5.633, allocations: 44.85 MB / 0.5768 GB, free: 23.07 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches