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.001345/0.001345, allocations: 110.7 kB / 17.28 MB, free: 6.176 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.001401/0.001401, allocations: 189.3 kB / 18.2 MB, free: 5.254 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.45/1.45, allocations: 205.1 MB / 224 MB, free: 12.45 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.001141/0.001141, allocations: 60.41 kB / 280.2 MB, free: 3.395 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08905/0.09021, allocations: 46.63 MB / 326.9 MB, free: 4.699 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006339/0.0966, allocations: 5.71 MB / 332.6 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002692/0.09934, allocations: 1.43 MB / 334 MB, free: 13.51 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000517/0.09988, allocations: 19.94 kB / 334 MB, free: 13.49 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003359/0.1003, allocations: 123 kB / 334.2 MB, free: 13.37 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005421/0.1008, allocations: 234 kB / 334.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007123/0.1015, allocations: 307.7 kB / 334.7 MB, free: 12.84 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001106/0.1027, allocations: 1.238 MB / 335.9 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005101/0.1032, allocations: 417 kB / 336.3 MB, free: 11.17 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005117/0.1037, allocations: 454.5 kB / 336.8 MB, free: 10.72 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004847/0.1042, allocations: 0.5291 MB / 337.3 MB, free: 10.19 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001459/0.1044, allocations: 128 kB / 337.4 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002378/0.1046, allocations: 156 kB / 337.6 MB, free: 9.914 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001727/0.1048, allocations: 255.2 kB / 337.8 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000406/0.1052, allocations: 0.5406 MB / 338.4 MB, free: 9.121 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001105/0.1063, allocations: 1.398 MB / 339.8 MB, free: 7.719 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1063, allocations: 0 / 339.8 MB, free: 7.719 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1063, allocations: 4 kB / 339.8 MB, free: 7.715 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.1064, allocations: 0 / 339.8 MB, free: 7.715 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.002274/0.1086, allocations: 1.282 MB / 341.1 MB, free: 6.379 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.1087, allocations: 16.03 kB / 341.1 MB, free: 6.363 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001403/0.1088, allocations: 123.2 kB / 341.2 MB, free: 6.234 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001588/0.109, allocations: 107.7 kB / 341.3 MB, free: 6.129 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005833/0.1096, allocations: 0.5012 MB / 341.8 MB, free: 5.586 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.299e-05/0.1096, allocations: 62.38 kB / 341.9 MB, free: 5.527 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.1098, allocations: 88.28 kB / 341.9 MB, free: 5.441 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.1113, allocations: 0.8845 MB / 342.8 MB, free: 4.539 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.1113, allocations: 0 / 342.8 MB, free: 4.539 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.38e-05/0.1114, allocations: 32 kB / 342.9 MB, free: 4.508 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.736e-05/0.1114, allocations: 16 kB / 342.9 MB, free: 4.492 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.1128, allocations: 0.7847 MB / 343.7 MB, free: 3.711 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004618/0.1174, allocations: 3.064 MB / 346.7 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.1185, allocations: 0.6423 MB / 347.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006471/0.1192, allocations: 418.3 kB / 347.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.21e-05/0.1192, allocations: 16.55 kB / 347.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.087e-05/0.1193, allocations: 43.12 kB / 347.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 3.256e-06/0.1193, allocations: 0 / 347.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=71): time 0.0044/0.1237, allocations: 2.185 MB / 350 MB, free: 13.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.292e-05/0.1238, allocations: 68.05 kB / 350.1 MB, free: 13.08 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005818/0.1244, allocations: 0.5028 MB / 350.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.627e-05/0.1244, allocations: 41.64 kB / 350.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002656/0.1247, allocations: 391.5 kB / 351 MB, free: 12.13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001989/0.1249, allocations: 248.4 kB / 351.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002937/0.1252, allocations: 138.6 kB / 351.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002156/0.1254, allocations: 370.8 kB / 351.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006443/0.1261, allocations: 313.9 kB / 352.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006383/0.1267, allocations: 421.1 kB / 352.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001223/0.128, allocations: 0.7467 MB / 353.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.128, allocations: 0 / 353.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002165/0.1302, allocations: 1.04 MB / 354.3 MB, free: 8.789 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.618e-05/0.1302, allocations: 11.94 kB / 354.3 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.1302, allocations: 4 kB / 354.3 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006201/0.1309, allocations: 180.6 kB / 354.4 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008206/0.1317, allocations: 191.8 kB / 354.6 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003805/0.1355, allocations: 2.855 MB / 357.5 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006621/0.1362, allocations: 39.97 kB / 357.5 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.358e-05/0.1363, allocations: 27.98 kB / 357.6 MB, free: 5.352 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.0004638/0.1367, allocations: 225.8 kB / 357.8 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001474/0.1369, allocations: 67.25 kB / 357.8 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001706/0.1371, allocations: 90.16 kB / 357.9 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.1371, allocations: 11.94 kB / 357.9 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.747e-05/0.1371, allocations: 0 / 357.9 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.1371, allocations: 7.984 kB / 357.9 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/0.1382, allocations: 0.8299 MB / 358.8 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1383, allocations: 0 / 358.8 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006832/0.1389, allocations: 159.8 kB / 358.9 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005132/0.1395, allocations: 173.5 kB / 359.1 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.089e-05/0.1395, allocations: 31.97 kB / 359.1 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003687/0.1432, allocations: 2.86 MB / 362 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1433, allocations: 4 kB / 362 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00261/0.1459, allocations: 1.381 MB / 363.4 MB, free: 15.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001753/0.1461, allocations: 136.3 kB / 363.5 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.1462, allocations: 16 kB / 363.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005672/0.1468, allocations: 55.95 kB / 363.6 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.1469, allocations: 52.52 kB / 363.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.321e-05/0.147, allocations: 23.98 kB / 363.7 MB, free: 15 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004265/0.1474, allocations: 354.9 kB / 364 MB, free: 14.65 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1474, allocations: 0 / 364 MB, free: 14.65 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007949/0.1482, allocations: 224 kB / 364.2 MB, free: 14.43 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.002935/0.1512, allocations: 1.961 MB / 366.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002389/0.1536, allocations: 1.025 MB / 367.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.1536, allocations: 0 / 367.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001327/0.1549, allocations: 0.6354 MB / 367.8 MB, free: 10.76 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007884/0.1557, allocations: 142.7 kB / 368 MB, free: 10.62 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01068/0.1664, allocations: 7.434 MB / 375.4 MB, free: 3.008 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005335/0.167, allocations: 0.9539 MB / 376.4 MB, free: 2.027 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003998/0.1674, allocations: 77.06 kB / 376.4 MB, free: 1.953 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003907/0.1678, allocations: 295.3 kB / 376.7 MB, free: 1.668 MB / 318.1 MB Notification: Performance of SimCode: time 1.272e-06/0.1678, allocations: 0 / 376.7 MB, free: 1.668 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1835/0.3513, allocations: 17.07 MB / 393.8 MB, free: 49.07 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001596/0.3515, allocations: 231.9 kB / 394 MB, free: 48.82 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.37/2.722, allocations: 0 / 394 MB, free: 48.82 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)