Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.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 3.2.3+maint.om/package.mo", uses=false) 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 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.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",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.001209/0.001209, allocations: 114.5 kB / 17.73 MB, free: 5.324 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.001235/0.001235, allocations: 187 kB / 18.66 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.551/1.551, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 51.94 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09891/0.1001, allocations: 46.61 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.2003/0.3004, allocations: 5.95 MB / 380.6 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004276/0.3047, allocations: 1.697 MB / 382.3 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001609/0.3063, allocations: 33.47 kB / 382.3 MB, free: 9.035 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001073/0.3075, allocations: 247.8 kB / 382.6 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001607/0.3092, allocations: 219.7 kB / 382.8 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002039/0.3112, allocations: 0.502 MB / 383.3 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002884/0.3141, allocations: 1.393 MB / 384.7 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001222/0.3154, allocations: 0.6227 MB / 385.3 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001051/0.3164, allocations: 480 kB / 385.8 MB, free: 7.543 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001272/0.3177, allocations: 0.4898 MB / 386.3 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004362/0.3182, allocations: 122 kB / 386.4 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005219/0.3187, allocations: 135.1 kB / 386.5 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002079/0.3189, allocations: 266.6 kB / 386.8 MB, free: 7.059 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005605/0.3195, allocations: 0.609 MB / 387.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002074/0.3216, allocations: 1.623 MB / 389 MB, free: 6 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3216, allocations: 5.219 kB / 389 MB, free: 5.996 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.175e-06/0.3216, allocations: 0 / 389 MB, free: 5.996 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.238e-05/0.3216, allocations: 0 / 389 MB, free: 5.996 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: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.002459/0.3241, allocations: 1.46 MB / 390.5 MB, free: 5.031 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.3242, allocations: 10.31 kB / 390.5 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001957/0.3244, allocations: 176.6 kB / 390.7 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002013/0.3246, allocations: 140.4 kB / 390.8 MB, free: 4.844 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001262/0.3258, allocations: 0.762 MB / 391.6 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.152e-05/0.3259, allocations: 90.81 kB / 391.6 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001609/0.3261, allocations: 120.9 kB / 391.8 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001936/0.328, allocations: 1.261 MB / 393 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.357e-05/0.3281, allocations: 7.375 kB / 393 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.14e-05/0.3282, allocations: 54.59 kB / 393.1 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.053e-05/0.3282, allocations: 31.38 kB / 393.1 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001234/0.3294, allocations: 0.6881 MB / 393.8 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005765/0.3352, allocations: 6.784 MB / 400.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007462/0.336, allocations: 269.8 kB / 400.8 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003625/0.3364, allocations: 180.9 kB / 401 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000132/0.3365, allocations: 85.14 kB / 401.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.3366, allocations: 41.25 kB / 401.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.254e-06/0.3366, allocations: 3.938 kB / 401.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002565/0.3391, allocations: 1.39 MB / 402.5 MB, free: 12.1 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/0.3392, allocations: 85.62 kB / 402.6 MB, free: 12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000822/0.34, allocations: 0.6622 MB / 403.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.922e-05/0.3401, allocations: 27.42 kB / 403.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004301/0.3405, allocations: 0.6807 MB / 404 MB, free: 11.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.3406, allocations: 122.8 kB / 404.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00018/0.3408, allocations: 148 kB / 404.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.341, allocations: 384.1 kB / 404.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002597/0.3413, allocations: 146.4 kB / 404.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005099/0.3418, allocations: 0.5531 MB / 405.3 MB, free: 9.953 MB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y ($START.inverseCapacitor1.capacitor.v = $START.directCapacitor1.currentToVoltage.y) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y ($START.inverseInductor3.inductor.i = $START.directInductor3.currentToVoltage.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.3429, allocations: 0.9467 MB / 406.3 MB, free: 9.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.343, allocations: 4.781 kB / 406.3 MB, free: 9.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001348/0.3443, allocations: 0.792 MB / 407.1 MB, free: 8.664 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/0.3444, allocations: 11 kB / 407.1 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.197e-05/0.3444, allocations: 13.75 kB / 407.1 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002467/0.3446, allocations: 87.56 kB / 407.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005523/0.3452, allocations: 181.6 kB / 407.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002639/0.3479, allocations: 3.329 MB / 410.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004597/0.3483, allocations: 33.83 kB / 410.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.939e-05/0.3484, allocations: 39.69 kB / 410.8 MB, free: 5.297 MB / 334.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004456/0.3488, allocations: 284.7 kB / 411 MB, free: 5.066 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/0.349, allocations: 74.31 kB / 411.1 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001161/0.3491, allocations: 67.84 kB / 411.2 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.3491, allocations: 7.547 kB / 411.2 MB, free: 4.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.3491, allocations: 1.25 kB / 411.2 MB, free: 4.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.3491, allocations: 5.234 kB / 411.2 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001959/0.3511, allocations: 1.254 MB / 412.4 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.3511, allocations: 1.906 kB / 412.4 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003161/0.3514, allocations: 64.91 kB / 412.5 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001636/0.3516, allocations: 59.36 kB / 412.6 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.12e-05/0.3516, allocations: 7.344 kB / 412.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002225/0.3539, allocations: 3.058 MB / 415.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3539, allocations: 1.094 kB / 415.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009407/0.3548, allocations: 0.6331 MB / 416.3 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001445/0.355, allocations: 142.4 kB / 416.4 MB, free: 248 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.66e-05/0.3551, allocations: 6.969 kB / 416.4 MB, free: 244 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002696/0.3553, allocations: 20.48 kB / 416.4 MB, free: 232 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.55e-05/0.3554, allocations: 31.75 kB / 416.5 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.3554, allocations: 5.906 kB / 416.5 MB, free: 212 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006116/0.3561, allocations: 439.9 kB / 416.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3561, allocations: 0 / 416.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001004/0.3571, allocations: 155.4 kB / 417.1 MB, free: 15.94 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (inverseInductor3.inductor.i,inductor4a.i,inductor4b.i,directCapacitor1.currentToVoltage.y,capacitor2a.v,capacitor2b.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001225/0.3583, allocations: 1.195 MB / 418.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001143/0.3595, allocations: 0.6462 MB / 418.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3595, allocations: 3.125 kB / 418.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004794/0.36, allocations: 360.7 kB / 419.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005584/0.3605, allocations: 79.89 kB / 419.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008596/0.3691, allocations: 6.409 MB / 425.7 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007159/0.3699, allocations: 1.033 MB / 426.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002982/0.3702, allocations: 89.88 kB / 426.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004711/0.3707, allocations: 419.2 kB / 427.3 MB, free: 8.09 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3707, allocations: 3.938 kB / 427.3 MB, free: 8.086 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04387/0.4146, allocations: 12.82 MB / 440.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.3, allocations: 4.062 kB / 440.1 MB, free: 11.4 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches