Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",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.001177/0.001177, allocations: 107.4 kB / 17.16 MB, free: 6.305 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.001083/0.001083, allocations: 198 kB / 18.07 MB, free: 5.406 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.351/1.351, allocations: 205.1 MB / 223.9 MB, free: 12.51 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.001173/0.001174, allocations: 55.92 kB / 280.1 MB, free: 3.516 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08875/0.08994, allocations: 46.63 MB / 326.7 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006288/0.09627, allocations: 5.71 MB / 332.4 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002872/0.09919, allocations: 1.438 MB / 333.8 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005519/0.09976, allocations: 19.94 kB / 333.9 MB, free: 13.6 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003762/0.1002, allocations: 115.1 kB / 334 MB, free: 13.48 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005523/0.1008, allocations: 242 kB / 334.2 MB, free: 13.25 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000708/0.1015, allocations: 299.7 kB / 334.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009803/0.1025, allocations: 1.175 MB / 335.7 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004972/0.103, allocations: 358.7 kB / 336 MB, free: 11.4 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004507/0.1034, allocations: 402.5 kB / 336.4 MB, free: 11.01 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004386/0.1039, allocations: 0.4939 MB / 336.9 MB, free: 10.51 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.104, allocations: 68 kB / 337 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002236/0.1042, allocations: 104 kB / 337.1 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001584/0.1044, allocations: 195.2 kB / 337.3 MB, free: 10.15 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003702/0.1048, allocations: 497.6 kB / 337.8 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009542/0.1057, allocations: 1.336 MB / 339.1 MB, free: 8.324 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.1058, allocations: 0 / 339.1 MB, free: 8.324 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1058, allocations: 0 / 339.1 MB, free: 8.324 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.1058, allocations: 0 / 339.1 MB, free: 8.324 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002426/0.1082, allocations: 1.298 MB / 340.4 MB, free: 6.977 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.1083, allocations: 8.031 kB / 340.4 MB, free: 6.969 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001608/0.1084, allocations: 131.2 kB / 340.5 MB, free: 6.832 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001667/0.1086, allocations: 103.7 kB / 340.6 MB, free: 6.73 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005696/0.1092, allocations: 0.5051 MB / 341.1 MB, free: 6.184 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.698e-05/0.1092, allocations: 58.38 kB / 341.2 MB, free: 6.125 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.1094, allocations: 84.28 kB / 341.3 MB, free: 6.043 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/0.1109, allocations: 0.8884 MB / 342.2 MB, free: 5.141 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.1109, allocations: 3.984 kB / 342.2 MB, free: 5.137 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.943e-05/0.111, allocations: 36 kB / 342.2 MB, free: 5.102 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.111, allocations: 20 kB / 342.2 MB, free: 5.082 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001492/0.1125, allocations: 0.7847 MB / 343 MB, free: 4.297 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004573/0.1171, allocations: 3.049 MB / 346.1 MB, free: 1.133 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.1181, allocations: 0.6422 MB / 346.7 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006463/0.1188, allocations: 414.3 kB / 347.1 MB, free: 80 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.837e-05/0.1189, allocations: 16.53 kB / 347.1 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.598e-05/0.1189, allocations: 39.12 kB / 347.2 MB, free: 12 kB / 286.1 MB Notification: Performance of pre-optimization done (n=67): time 2.816e-06/0.1189, allocations: 0 / 347.2 MB, free: 12 kB / 286.1 MB Notification: Performance of matching and sorting (n=71): time 0.004278/0.1232, allocations: 2.197 MB / 349.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/0.1233, allocations: 56.06 kB / 349.4 MB, free: 13.69 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000557/0.1238, allocations: 0.5067 MB / 349.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.092e-05/0.1239, allocations: 37.7 kB / 350 MB, free: 13.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002283/0.1241, allocations: 395.4 kB / 350.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001611/0.1243, allocations: 248.4 kB / 350.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002138/0.1245, allocations: 138.6 kB / 350.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.1246, allocations: 378.8 kB / 351.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005996/0.1252, allocations: 305.9 kB / 351.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006681/0.1259, allocations: 429.1 kB / 351.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001249/0.1272, allocations: 0.7389 MB / 352.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1272, allocations: 4 kB / 352.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002084/0.1293, allocations: 1.04 MB / 353.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.1293, allocations: 4 kB / 353.6 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.1293, allocations: 4 kB / 353.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005756/0.1299, allocations: 188.5 kB / 353.8 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008012/0.1307, allocations: 187.8 kB / 354 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00374/0.1345, allocations: 2.602 MB / 356.6 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006654/0.1352, allocations: 35.97 kB / 356.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.878e-05/0.1352, allocations: 32 kB / 356.6 MB, free: 6.215 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003892/0.1356, allocations: 221.8 kB / 356.8 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001442/0.1358, allocations: 75.09 kB / 356.9 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000161/0.136, allocations: 86.17 kB / 357 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.982e-06/0.136, allocations: 8 kB / 357 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.136, allocations: 4 kB / 357 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.076e-06/0.136, allocations: 7.922 kB / 357 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009714/0.137, allocations: 0.8378 MB / 357.9 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.137, allocations: 0 / 357.9 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007065/0.1377, allocations: 151.8 kB / 358 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005608/0.1383, allocations: 173.5 kB / 358.2 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.142e-05/0.1384, allocations: 19.98 kB / 358.2 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003417/0.1418, allocations: 2.602 MB / 360.8 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1418, allocations: 0 / 360.8 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00262/0.1444, allocations: 1.388 MB / 362.2 MB, free: 440 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000246/0.1447, allocations: 144.2 kB / 362.3 MB, free: 276 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.553e-05/0.1448, allocations: 12 kB / 362.3 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005688/0.1454, allocations: 52.2 kB / 362.4 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.1456, allocations: 52.58 kB / 362.4 MB, free: 160 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.87e-05/0.1456, allocations: 27.98 kB / 362.5 MB, free: 132 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004768/0.1461, allocations: 354.9 kB / 362.8 MB, free: 15.78 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1461, allocations: 0 / 362.8 MB, free: 15.78 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008685/0.147, allocations: 228 kB / 363 MB, free: 15.56 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.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 (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002943/0.1499, allocations: 1.965 MB / 365 MB, free: 13.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002375/0.1523, allocations: 1.006 MB / 366 MB, free: 12.55 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.1524, allocations: 0 / 366 MB, free: 12.55 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001349/0.1537, allocations: 0.6315 MB / 366.6 MB, free: 11.9 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008275/0.1545, allocations: 126.6 kB / 366.8 MB, free: 11.78 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/0.1654, allocations: 7.433 MB / 374.2 MB, free: 4.176 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004772/0.1659, allocations: 0.9539 MB / 375.2 MB, free: 3.195 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003919/0.1663, allocations: 81.06 kB / 375.2 MB, free: 3.113 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003645/0.1667, allocations: 291.3 kB / 375.5 MB, free: 2.832 MB / 318.1 MB Notification: Performance of SimCode: time 9.12e-07/0.1667, allocations: 0 / 375.5 MB, free: 2.832 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1796/0.3463, allocations: 16.57 MB / 392.1 MB, free: 48.65 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001664/0.3465, allocations: 228.1 kB / 392.3 MB, free: 48.4 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.428/2.774, allocations: 0 / 392.3 MB, free: 48.4 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)