Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001768/0.001768, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002287/0.002287, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 246.8 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2331/0.2331, allocations: 46.11 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002241/0.002241, allocations: 77.31 kB / 417.7 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1123, allocations: 62.46 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001625/0.114, allocations: 467.8 kB / 480.7 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003528/0.1175, allocations: 2.403 MB / 483.1 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.801e-05/0.1175, allocations: 0 / 483.1 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.558e-06/0.1176, allocations: 7.938 kB / 483.1 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.769e-06/0.1176, allocations: 0 / 483.1 MB, free: 2.23 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function 'ModelicaTest.ComplexMath.ComplexFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002721/0.1203, allocations: 1.151 MB / 484.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.898e-05/0.1204, allocations: 0 / 484.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.165e-05/0.1204, allocations: 0 / 484.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.629e-05/0.1204, allocations: 4 kB / 484.2 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.763e-05/0.1205, allocations: 4 kB / 484.2 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.829e-06/0.1205, allocations: 3.938 kB / 484.2 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001573/0.122, allocations: 1.011 MB / 485.2 MB, free: 56 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.817e-06/0.1221, allocations: 3.984 kB / 485.2 MB, free: 52 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.773e-05/0.1221, allocations: 0 / 485.2 MB, free: 52 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000723/0.1228, allocations: 443.4 kB / 485.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1228, allocations: 0 / 485.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.1229, allocations: 4 kB / 485.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.1229, allocations: 3.938 kB / 485.7 MB, free: 15.61 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000566/0.1234, allocations: 445.4 kB / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.1235, allocations: 12.03 kB / 486.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.121e-05/0.1235, allocations: 30.75 kB / 486.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.252e-05/0.1235, allocations: 0.9375 kB / 486.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.1237, allocations: 160.4 kB / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.1237, allocations: 384 / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.473e-06/0.1237, allocations: 384 / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.883e-05/0.1238, allocations: 41.75 kB / 486.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.1238, allocations: 3.984 kB / 486.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.723e-06/0.1238, allocations: 4 kB / 486.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1238, allocations: 0 / 486.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.967e-05/0.1239, allocations: 4 kB / 486.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001553/0.124, allocations: 149.6 kB / 486.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.849e-05/0.1241, allocations: 14.67 kB / 486.5 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.624e-05/0.1241, allocations: 16.78 kB / 486.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.564e-06/0.1241, allocations: 0 / 486.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.268e-05/0.1242, allocations: 64.2 kB / 486.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1242, allocations: 0 / 486.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001702/0.1244, allocations: 67.34 kB / 486.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/0.1244, allocations: 77.11 kB / 486.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.624e-05/0.1245, allocations: 93.84 kB / 486.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.1245, allocations: 29.7 kB / 486.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.282e-05/0.1245, allocations: 80.14 kB / 487 MB, free: 14.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.56e-05/0.1246, allocations: 0 / 487 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.761e-05/0.1246, allocations: 13.84 kB / 487 MB, free: 14.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.1247, allocations: 314.8 kB / 487.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.468e-06/0.1248, allocations: 0 / 487.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.53e-06/0.1248, allocations: 0 / 487.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.952e-05/0.1248, allocations: 64.27 kB / 487.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1248, allocations: 0 / 487.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.422e-05/0.1249, allocations: 67.33 kB / 487.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.315e-05/0.125, allocations: 33.73 kB / 487.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.125, allocations: 4 kB / 487.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/0.125, allocations: 0 / 487.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.92e-07/0.125, allocations: 0 / 487.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.125, allocations: 4 kB / 487.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.323e-05/0.125, allocations: 0 / 487.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.125, allocations: 0 / 487.4 MB, free: 13.57 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001136/0.1252, allocations: 139.5 kB / 487.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.878e-06/0.1252, allocations: 7.938 kB / 487.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.765e-06/0.1252, allocations: 3.125 kB / 487.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.1252, allocations: 4 kB / 487.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.1252, allocations: 0 / 487.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-06/0.1252, allocations: 0 / 487.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001235/0.1253, allocations: 157.6 kB / 487.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1253, allocations: 0 / 487.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.485e-06/0.1254, allocations: 4 kB / 487.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.1254, allocations: 3.938 kB / 487.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-06/0.1254, allocations: 0 / 487.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.1254, allocations: 7.922 kB / 487.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1254, allocations: 3.938 kB / 487.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001097/0.1255, allocations: 98.77 kB / 487.9 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.454e-05/0.1256, allocations: 81.05 kB / 487.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.112e-05/0.1256, allocations: 0 / 487.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.298e-05/0.1256, allocations: 4 kB / 487.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.255e-05/0.1256, allocations: 0 / 487.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.1256, allocations: 0 / 487.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.108e-05/0.1256, allocations: 75.28 kB / 488 MB, free: 12.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1257, allocations: 4.031 kB / 488 MB, free: 12.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005065/0.1262, allocations: 156 kB / 488.2 MB, free: 12.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001064/0.1272, allocations: 0.9006 MB / 489.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001035/0.1274, allocations: 67.34 kB / 489.1 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1274, allocations: 0 / 489.1 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.512e-05/0.1274, allocations: 51.41 kB / 489.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001201/0.1275, allocations: 6.188 kB / 489.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003923/0.1279, allocations: 190.4 kB / 489.4 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.1283, allocations: 0.6768 MB / 490.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.576e-06/0.1283, allocations: 3.984 kB / 490.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.208e-05/0.1283, allocations: 7.438 kB / 490.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.1283, allocations: 0 / 490.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02972/0.1581, allocations: 5.624 MB / 495.7 MB, free: 5.176 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.242/8.4, allocations: 13.81 kB / 495.7 MB, free: 5.168 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1)